doctor: report what each draft store holds (readable / markerless / encrypted / unreadable), with --drafts - #123
Merged
Merged
Conversation
…one folder A JianYing 6.0+ store, where every project the app wrote is an encrypted payload, was discovered one failed command at a time. doctor now adds a draft-store check per project directory it finds (or the folder named with --drafts <dir>): projects counted as readable, markerless, encrypted or unreadable, and on an encrypted store a warning that says what still works. Same classification as the template.store report of init/quickstart/compile.
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.
What
capcut doctoradds adraft-storecheck for every default CapCut/JianYing project directory it finds: how many projects are readable, markerless, encrypted or unreadable. Same classification as thetemplate.storereport ofinit/quickstart/compile.init,quickstartandcompilebuild plaintext drafts from the bundled template; pinning JianYing to 5.9.x keeps app-made projects editable;capcut decrypt <project>for one project; details indocs/jianying-encryption.md.--drafts <dir>inspects one folder instead of the per-OS defaults, so the check runs on a machine without the app and in CI. A missing folder is a warning with a fix hint, not a hard failure.Why
The encrypted-store situation is the most repeated support question in the JianYing ecosystem and was only surfaced here after a command failed on such a project. Naming it once, up front, with the working path next to it, is cheaper for everyone.
Tests
test/doctor-store.test.mjs: mixed store (2 encrypted + 1 CLI-made readable), all-encrypted, plaintext, empty, missing folder, and the-Hlayout.packaging.test.mjsunchanged: the check uses a structural type sodoctor.d.tspulls no new declarations into the tarball.Docs
CHANGELOG (Unreleased), command reference (en regenerated, zh by hand),
docs/jianying-encryption.md+ zh-CN: one bullet each in "What the CLI says on such a store".