Edit package re-sync (#68) #125
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!125
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-68-edit-package-resync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #68.
Re-exporting to an Edit package now syncs it in place, driven by the previous
manifest.json:<file>.partialand is then renamed over the old one, so a hard-linked master is unlinked and linked again..srtfiles,takes.csvandmanifest.jsonare rewritten on every export._Removed/<local date>/at the same relative path. That covers clips of NG Takes, uncircled clips under Circled only, and clips of Scenes left out. When the same name was already set aside that day, the new copy is numberedname (2).ext. Nothing is deleted. Only now-empty folders are removed.fileslist of the Animatic stills, Performance WAVs and timelines, so these are set aside too when a Scene drops out. A version 1 manifest has no such list, so only its clips are synced.manifest.jsoncan't be read or belongs to another Project.Two judgement calls go beyond the ticket's wording: non-clip files are set aside too, and another Project's package is refused. Both follow from "a Project exports to one Edit package … nothing is deleted".
Deleted Takes: only failed Takes can be deleted today, and they never have a clip, so that case can't come up yet. The same set difference would handle it.
Screenshots
Tests
cargo test --workspace --all-features: 827 passedbun test src scripts: 255 passedbun run check: cleanNew tests are in
crates/studio-core/tests/edit_package.rs: