Skip to content

v0.19.0 - Stability contract, exit codes, uniform flags and changes suggest

Latest

Choose a tag to compare

@aloth aloth released this 25 Nov 16:40
  • docs/STABILITY.md - documents what semantic versioning covers from 1.0 (command and option names, exit statuses, --json field names and types, environment variables, the library exports in docs/LIBRARY.md, MCP tool names and input schemas, and the Node.js support policy: 1.0 requires Node 22 or newer, rising to Node 24 in 1.1) and what stays outside it (human-readable output, Overleaf's own endpoints, and experimental features such as changes suggest and suggest_changes).
  • One exit-code table for every command - olcli help exit-codes prints the table: 0 success, 1 failure, 2 usage error, 3 reserved for "differences found", 4 not signed in or session rejected, 5 conflict (nothing written), 130 interrupted. Unknown options/commands, invalid values and missing projects now exit 2; missing/rejected credentials and captcha-refused password sign-ins exit 4 (including auth status, whoami and check); stale previews in changes reject and collisions in project rename-bulk exit 5; cancelled prompts exit 130. diff --exit-code keeps diff(1) statuses (0 same, 1 different, 2 failed).
  • olcli changes suggest <file> [project] (experimental) - CLI counterpart to suggestChanges and the suggest_changes MCP tool. Reads SuggestionEdit[] JSON from --edits <path> or stdin (--edits -), previews each edit's location and deletion/insertion without writing, and applies with --yes (refusing with exit 5 if the document changed since the preview). Supports --json. Same limits as the MCP tool (sharejs-text-ot only, ~0.2 s window for open web sessions, edit access required); outside the stability promise.
  • One spelling per option, old spellings kept as hidden aliases - diff --main <path> is now diff -r, --resource <path>, project rename-bulk --apply is now project rename-bulk -y, --yes, --project gains -p on push, sync, output and changes, and --yes gains -y. --main and --apply keep working with a one-line deprecation notice on terminals only (silent on pipes).
  • docs/CLI-CONVENTIONS.md and convention tests - documents the option vocabulary and enforces single spellings, consistent short flags, no shadowed global options, the 21-command root-help budget, and synced README/SKILL.md command tables in CI.
  • olcli help exit-codes and olcli help environment - built-in help topics without adding new top-level commands.
  • Notice on Node older than 22 - engines remains >=20.18.1 for 0.x; on older runtimes olcli prints one notice line when stdout and stderr are a terminal (never on pipes, CI logs, the MCP server or the git remote helper).
  • whoami and check stay quiet on pipes - their pointer to olcli auth status now prints only on a terminal.