humanize rewrite
Rewrite text with Skryba.
Invocation#
lem-cli humanize rewrite [input|-] [--candidates <n>] [--max-words-per-chunk <n>] [--temperature <n>] [--seed <n>]Inputs and options#
- input is one optional file path; - or no input reads stdin. A ~/ prefix expands to the current home directory.
- --candidates defaults to 8. --max-words-per-chunk defaults to 400. --temperature defaults to 0.9. --seed is a non-negative integer and defaults to 42.
Output and state#
Runs Skryba and prints JSON with state, provider, message, and rewritten text.
Refusals#
- Every option requires a value of its documented numeric type. More than one input or any unknown --option is refused as “humanize rewrite: unexpected argument <value>”.
- The request refuses empty text, non-positive candidates, non-positive maximum words per chunk, or a temperature outside 0 through 2.
- An unreadable input file, failed execution, invalid response, or empty rewrite is refused. When Skryba is not installed the refusal is “Skryba is unavailable: install skryba or set LEM_SKRYBA_BIN”; Lem resolves the executable from LEM_SKRYBA_BIN, PATH, ~/.cargo/bin, ~/.local/bin, the Skryba checkout's target directories, and the usual Homebrew prefixes.