fabricatio_novel.commands.illustration

Illustrated-novel CLI commands (comfyui-gated).

Registers onto the shared app from fabricatio_novel.cli:

Functions

write_illustrated_novel(→ None)

Generate an illustrated novel with ComfyUI-generated images embedded in the EPUB.

write_mental_illustrated_novel(→ None)

Generate a novel with mental state tracking + ComfyUI illustrations.

illustrate_novel(→ None)

Illustrate an already-written novel loaded from a persisted Novel JSON file.

Module Contents

fabricatio_novel.commands.illustration.write_illustrated_novel(outline: str = OUTLINE, outline_file: pathlib.Path = OUTLINE_FILE, output_path: pathlib.Path = OUTPUT_PATH, font_file: pathlib.Path = FONT_FILE, cover_image: pathlib.Path = COVER_IMAGE, language: str = LANGUAGE, chapter_guidance: str = CHAPTER_GUIDANCE, guidance_file: pathlib.Path = GUIDANCE_FILE, persist_dir: pathlib.Path = PERSIST_DIR, image_root: pathlib.Path = _IMAGE_ROOT, workflow_template: pathlib.Path | None = _WORKFLOW_TEMPLATE, illustration_budget: int = _ILLUST_BUDGET, illustration_language: str = _ILLUST_LANG, illustration_guideline: str = _ILLUST_GUIDELINE, illustration_guideline_file: pathlib.Path = _ILLUST_GUIDELINE_FILE, illustration_prompt_guideline: str = _ILLUST_PROMPT_GUIDELINE, illustration_prompt_guideline_file: pathlib.Path = _ILLUST_PROMPT_GUIDELINE_FILE, comfyui_timeout: float = _COMFYUI_TIMEOUT, comfyui_base_url: str = _COMFYUI_BASE_URL) None

Generate an illustrated novel with ComfyUI-generated images embedded in the EPUB.

fabricatio_novel.commands.illustration.write_mental_illustrated_novel(outline: str = OUTLINE, outline_file: pathlib.Path = OUTLINE_FILE, output_path: pathlib.Path = OUTPUT_PATH, font_file: pathlib.Path = FONT_FILE, cover_image: pathlib.Path = COVER_IMAGE, language: str = LANGUAGE, chapter_guidance: str = CHAPTER_GUIDANCE, guidance_file: pathlib.Path = GUIDANCE_FILE, persist_dir: pathlib.Path = PERSIST_DIR, image_root: pathlib.Path = _IMAGE_ROOT, workflow_template: pathlib.Path | None = _WORKFLOW_TEMPLATE, illustration_budget: int = _ILLUST_BUDGET, illustration_language: str = _ILLUST_LANG, illustration_guideline: str = _ILLUST_GUIDELINE, illustration_guideline_file: pathlib.Path = _ILLUST_GUIDELINE_FILE, illustration_prompt_guideline: str = _ILLUST_PROMPT_GUIDELINE, illustration_prompt_guideline_file: pathlib.Path = _ILLUST_PROMPT_GUIDELINE_FILE, comfyui_timeout: float = _COMFYUI_TIMEOUT, comfyui_base_url: str = _COMFYUI_BASE_URL) None

Generate a novel with mental state tracking + ComfyUI illustrations.

fabricatio_novel.commands.illustration.illustrate_novel(input: pathlib.Path = _INPUT_FILE, output_path: pathlib.Path = OUTPUT_PATH, font_file: pathlib.Path = FONT_FILE, cover_image: pathlib.Path = COVER_IMAGE, persist_dir: pathlib.Path = PERSIST_DIR, image_root: pathlib.Path = _IMAGE_ROOT, workflow_template: pathlib.Path | None = _WORKFLOW_TEMPLATE, illustration_budget: int = _ILLUST_BUDGET, illustration_language: str = _ILLUST_LANG, illustration_guideline: str = _ILLUST_GUIDELINE, illustration_guideline_file: pathlib.Path = _ILLUST_GUIDELINE_FILE, illustration_prompt_guideline: str = _ILLUST_PROMPT_GUIDELINE, illustration_prompt_guideline_file: pathlib.Path = _ILLUST_PROMPT_GUIDELINE_FILE, comfyui_timeout: float = _COMFYUI_TIMEOUT, comfyui_base_url: str = _COMFYUI_BASE_URL) None

Illustrate an already-written novel loaded from a persisted Novel JSON file.