Repository navigation
feat: automatic demos from a recording (prototype) - #4636
Draft
richiemcilroy wants to merge 7 commits into
Draft
richiemcilroy wants to merge 7 commits into
richiemcilroy wants to merge 7 commits into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prototype of automatic demos: give Cap a Studio recording and it cuts it into a short demo with title cards, framed shots and music, as an ordinary editable timeline.
How it works
crates/director): reads the cursor, keyboard and screen tracks and groups them into numbered moments. A moment is one click or one run of typing, with the cursor's approach and the screen settling after it, plus the area of the screen it happened in.The planner can be:
POST /api/desktop/demos/plan, on the same model chain and request budget as meeting notes.demo_signalsreturns the moments, a frame of each and the guide;demo_applytakes the beat sheet.cap demo auto --localkeeps every click and typing run in order.cap demo undorestores the timeline the recording had before.What is not here yet
Testing
cargo test -p cap-director: 9 tests.cargo clippy -p cap-director -p cap --all-targets -- -D warnings: clean.cargo test -p cap --test cli: 75 pass.agent_installer_dry_run_is_machine_readablefails the same way on main on the test machine.cap demo signals,applyandexporton a 62 s recording and checked frames of every shot and of the card boundaries.demo_signalsanddemo_applythrough an MCP session.