Repository navigation
Prompt Block AI Assist across all structured prompt tabs (per-shot & whole-tab) with cohesive multi-field preview, one-click undo-clear, and single-step atomic Undo.
Added
- Prompt Block AI Assist (per-shot & whole-tab, #132). Adds block-level AI generate, enhance, and refine assistance to the Clip Prompt Form (Sections tab) as a middle layer between whole-clip Revise clip with AI and single-field Field Assist:
- Covers all 10 multi-field prompt blocks: clip-wide Subjects & references, Reference retention, and Soundscape (combining clip-wide soundscape + per-shot \Scene sound), plus both per-\Shot N\ and whole-tab All shots triggers on Shots, Action, Camera, Effects, Lighting, Acting, and Continuity.
- New \POST /h3c/prompt/block-assist\ endpoint (\h3_continuity/field_assist.py, \h3_continuity/routes.py) supporting both wired ComfyUI \Generate Text\ nodes and OpenAI-compatible HTTP endpoints, with strict JSON Schema output + tolerant <think>/flat-JSON parsing, \Short/\Detailed/\Elaborate\ writing styles, per-field sanitization, server-side non-clearable protection (\subject_description, \shot_description, \dialogue_words), and shared concurrency/cancel guards.
- Inline multi-field Preview (\web/h3c_field_assist.mjs, \web/h3c_prompt_form.mjs) showing editable changed rows with \New\ / \Updated\ / \Cleared\ badges, one-click Keep to undo clearing, Refine / Try again / Discard, and one-step atomic \Ctrl+Z\ Undo via \PromptFormPanel.applyBlockFields\ while preserving Cast links, @slot\ bindings, [Shot N]\ timestamps, and dialogue speaker metadata.