Skip to content

Wizard focus-file frontend, scene edges, and timing fidelity - #57

Draft
jmjava wants to merge 1 commit into
mainfrom
cursor/wizard-focus-files-graphics-timing-afb7
Draft

Wizard focus-file frontend, scene edges, and timing fidelity#57
jmjava wants to merge 1 commit into
mainfrom
cursor/wizard-focus-files-graphics-timing-afb7

Conversation

@jmjava

@jmjava jmjava commented Jul 28, 2026

Copy link
Copy Markdown
Owner

Summary

Turns docgen wizard into a real focus-file frontend and ships continued graphics + timing improvements in the library.

Frontend (docgen wizard)

  • Focus file picker scans Markdown and source types (.py, .yaml, .ts, …; configurable via wizard.scan_extensions)
  • Save focus files writes durable context.paths into segment hint front matter (category B) and runs yaml-generate
  • Production view adds a Focus files tab; regenerate narration uses those paths
  • Pipeline buttons: timestamps, scene-spec (+ compile), then Manim / compose / validate

Graphics

  • First-class scene-spec edges (from / to / optional palette color) → _arrow + GrowArrow
  • Stronger _box / _arrow styling
  • Scene-spec LLM prompt steers flow diagrams toward edges

Timing

  • Pause-aware word weights (punctuation gets a small TTS breath share)
  • Merge over-detected silence intervals toward sentence count for the 1:1 path
  • Hyphen/underscore label tokenization (yaml-generate ↔ spoken yaml + generate) + soft long-token fallback

Other

  • Pin [tool.ruff.lint] select = ["E4", "E7", "E9", "F"] so Ruff 0.16+ broader defaults do not fail CI on the existing tree

Test plan

  • pytest tests/ (290 passed)
  • ruff check src/ tests/
  • Smoke: docgen wizard → select focus files → Save → confirm hint front matter + docgen.yaml merge
  • Optional: scene-spec with edges:scene-compile → Manim render shows arrows
Open in Web Open in Cursor 

Extend the Flask wizard so maintainers can select repo focus files per
segment, persist them into hint front matter (context.paths), and refresh
docgen.yaml via yaml-generate. Broader file-type scanning, production Focus
tab, and pipeline steps for timestamps / scene-spec.

Improve diagram graphics with first-class scene-spec edges (arrows), richer
box/arrow styling, and hyphen-aware label↔word matching. Tighten local
timing with pause-aware word weights and silence-interval reconciliation.

Pin ruff lint select to the classic E/F gate so Ruff 0.16+ defaults do not
fail CI on the existing tree.

Co-authored-by: John Menke <jmjava@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants