scan |
Builds a voice profile, one per language with enough text, from --own EPUB and --reference EPUB (each repeatable), or from --own-book BOOK --eligibility FILE. Writes the profile to --out and sample passages to --work (both required, both outside any book). --min-words (default 3000), --replace (old files move to history/), --max-expanded-mb (default 64). |
0 built · 1 refused (DRM, a size limit, an existing profile, a folder inside a book, a destination that is a symbolic link, the same book twice) or no language had enough text · 2 error (a damaged archive, an input that is not a regular file, a language tag that names no language) |
check |
Measures one or more drafts against --profile FOLDER and runs the copy guard. --lang (default: from the draft's script), --json, --strict, --accepted BASE for a revision of one unit. |
0 measured · 1 the copy guard found a run, or with --strict a measure is outside and not weak, or could not be compared · 2 error, including a profile or guard that is not valid |
rank |
Orders two or more takes of one unit, each checked alone: copy-guard runs last, then narration distance, voice distance and measures outside. --profile, --lang, --json. |
0 ranking printed (it informs; it does not gate) · 2 error |
book |
Checks every unit a --list file names, in reading order, one row each: mdrestyler book BOOK --profile FOLDER --list UNITS. --within sets the threshold: p50, p90 (default), max or a number. --lang, --json. |
0 table printed · 2 a unit outside the book, missing, named twice or not Markdown, or an invalid profile |
install |
Installs a profile into a profile folder: mdrestyler install FOLDER [SOURCE] --lang LANG. Without a source, the shipped default for the language. --replace replaces a draft or approved profile and keeps its files under history/. |
0 installed (prints JSON) · 1 not installed, for example a profile already there and no --replace · 2 usage error |
profile validate |
Reports a profile folder's status and revision as JSON, or why it is not valid: mdrestyler profile validate FOLDER --lang LANG. |
0 valid · 2 not valid, or --lang missing |
verify |
Checks the skill folder it runs from against MANIFEST.json; --expect DIGEST checks the manifest's digest too. Prints JSON with ok and manifest_sha256. |
0 matches · 1 a file missing, changed or unlisted, or another digest · 2 not run from a skill folder |
--version |
Prints the version, the source commit and the manifest digest, which is what a product built on mdrestyler pins. |
0 |