Add configurable slides path and malformed marker detection

- project.json now supports "slides" field pointing to slides.json location
- Slide images are loaded from same directory as slides.json
- Validation detects malformed markers (missing ], extra spaces)
- Reports line numbers for each malformed marker

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-12 11:49:46 +01:00
co-authored by Claude Opus 4.5
parent b347841634
commit 7f7425da46
6 changed files with 65 additions and 20 deletions
+5
View File
@@ -37,6 +37,10 @@ def build_render_plan(
# Build slide events from transcript markers
slide_events = _extract_slide_events(transcript, slides, total_duration)
# Derive slides directory from slides_path
slides_json_path = project_path / config.slides_path
slides_dir = slides_json_path.parent
return RenderPlan(
project_path=project_path,
config=config,
@@ -44,6 +48,7 @@ def build_render_plan(
slide_events=slide_events,
total_duration=total_duration,
slides=slides,
slides_dir=slides_dir,
)