Summary#
- Add screenshot capture, editable per-shot notes, and feedback bundles for sharing with coding agents.
- Add MCP tools to retrieve or wait for feedback and seek the preview player.
- Switch package installation guidance and lockfile from npm to pnpm.
Testing#
- Smoke-tested feedback saving, note edits, sharing, and read tracking through the server API.
- Verified
get_feedback, wait_for_feedback, and seek_player through an MCP stdio client.
- Browser walkthroughs with screw-bugs, 5/5 steps passed on both
test-fixture and a real 35.55s .riv (tanstack-db-section.riv): screenshot two frames (camera button and S), write a note on each, edit a note, jump back to a shot's frame, add an overall note, send to the agent, and see the panel confirm the agent read it (an MCP client calling wait_for_feedback). The captured PNGs show the actual animation frame.
Review fixes#
Two rounds of Codex review; all findings fixed in 87cbb0d:
- Path traversal through a shot's
frame value, plus cross-site requests to the local server: Host/Origin checks, validated metadata, contained file names.
- Note saves: per-note revisions so saves land in order, failed saves never restore older text, refreshes don't clobber notes still saving; Send waits for every save and freezes the notes.
- Store writes serialized, unique temp files per JSON write.
- Bare
.riv files in one folder now keep separate feedback (.rive-preview/<file>.riv/).
Verified with targeted tests (cross-origin/host rejection, traversal attempt, 20 concurrent saves, a failing slow save with newer text queued, a reload mid-save, two .riv players side by side) and a passing screw-bugs regression run.