@aloth/olcli 0.18.1 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -84,11 +84,11 @@ Or per command: `olcli --base-url https://latex.example.org list`. The MCP serve
84
84
  - **Files:** upload, download, delete, rename and move by path; download the project as a zip
85
85
  - **Review comments:** list, add, reply, resolve, reopen and delete comment threads
86
86
  - **Tracked changes:** list suggested insertions and deletions, accept or reject them. Track changes is an Overleaf premium feature: it is only available in projects whose owner has a premium plan, and invited collaborators on any plan can then use it. In other projects there are no tracked changes to list
87
- - **Projects:** create, rename, and bulk-rename by pattern (dry run unless `--apply`)
87
+ - **Projects:** create, rename, and bulk-rename by pattern (dry run unless `--yes`)
88
88
  - **Git remote:** `git clone overleaf::https://www.overleaf.com/project/<id>` ([docs/GIT-REMOTE.md](docs/GIT-REMOTE.md))
89
89
  - **MCP server** for AI agents; every tool that writes asks you first ([docs/MCP.md](docs/MCP.md))
90
90
  - **Forgiving project names:** case-insensitive, unique prefixes, "Did you mean" suggestions
91
- - **Scriptable:** `--json` on listings, plain output when piped, `NO_COLOR`, exit codes that mean something
91
+ - **Scriptable:** `--json` on listings, plain output when piped, `NO_COLOR`, exit codes that mean something (`olcli help exit-codes`)
92
92
 
93
93
  ## Use with Claude Code, Codex and Cursor
94
94
 
@@ -122,13 +122,13 @@ Inside a pulled directory (it contains `.olcli.json`), the project argument can
122
122
  | Command | Description |
123
123
  |---------|-------------|
124
124
  | `olcli auth` | Sign in: `--browser`, `--cookie`, or `--email` |
125
- | `olcli auth status` | Instance, account, credential source; exits 1 when not signed in |
125
+ | `olcli auth status` | Instance, account, credential source; exits 4 when not signed in |
126
126
  | `olcli logout` | Clear stored credentials |
127
127
  | `olcli list` | List projects (`--json`, `-n`) |
128
128
  | `olcli info [project]` | Project details and file list |
129
129
  | `olcli project create <name>` | Create a blank or example project (`--template`) |
130
130
  | `olcli project rename <new> [project]` | Rename the project itself |
131
- | `olcli project rename-bulk` | Rename many projects by pattern (dry run unless `--apply`) |
131
+ | `olcli project rename-bulk` | Rename many projects by pattern (dry run unless `--yes`) |
132
132
  | `olcli pull [project] [dir]` | Download project files |
133
133
  | `olcli push [dir]` | Upload local changes (`--dry-run`, `--all`, `--delete`) |
134
134
  | `olcli sync [dir]` | Pull then push, propagating local deletions (`--no-delete`, `--dry-run`) |
@@ -147,6 +147,7 @@ Inside a pulled directory (it contains `.olcli.json`), the project argument can
147
147
  | `olcli comments resolve <id>` | Resolve a thread (`reopen` and `delete` too) |
148
148
  | `olcli changes accept <ids...>` | Accept tracked changes (premium projects) |
149
149
  | `olcli changes reject <ids...>` | Reject tracked changes; preview unless `--yes` |
150
+ | `olcli changes suggest <file> [project]` | Experimental: turn pushed edits into suggestions (`--edits`); preview unless `--yes` |
150
151
  | `olcli config set-url <url>` | Set the instance URL (`get-url`, `set-cookie-name`, `set-timeout`) |
151
152
  | `olcli ignored [dir]` | Show the ignore patterns in effect |
152
153
 
@@ -225,6 +226,8 @@ All exports: [docs/LIBRARY.md](docs/LIBRARY.md).
225
226
  - [docs/GIT-REMOTE.md](docs/GIT-REMOTE.md): Overleaf as a git remote
226
227
  - [docs/CONFIGURATION.md](docs/CONFIGURATION.md): credentials, environment variables, timeout, ignore rules
227
228
  - [docs/LIBRARY.md](docs/LIBRARY.md): TypeScript library
229
+ - [docs/STABILITY.md](docs/STABILITY.md): what semver covers from 1.0, and how deprecations work
230
+ - [docs/CLI-CONVENTIONS.md](docs/CLI-CONVENTIONS.md): option names, deprecated spellings
228
231
  - [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md): how the client talks to Overleaf (there is no public Overleaf API, so it uses a browser session)
229
232
 
230
233
  ## Contributing
package/dist/cli.d.ts CHANGED
@@ -5,5 +5,15 @@
5
5
  * Command-line access to Overleaf projects using session cookies
6
6
  * for authentication. Download, upload, sync, and compile LaTeX projects.
7
7
  */
8
- export {};
8
+ /** Print a deprecation notice once per run, only when stderr is a terminal. */
9
+ export declare function deprecationNotice(oldSpelling: string, newSpelling: string, stream?: {
10
+ isTTY?: boolean;
11
+ write(text: string): unknown;
12
+ }): boolean;
13
+ /**
14
+ * `olcli help exit-codes` and `olcli help environment`: topics served by the
15
+ * built-in help command rather than new commands, so the root help does not
16
+ * grow. Returns the topic name when argv asks for one.
17
+ */
18
+ export declare function requestedHelpTopic(args: string[]): string | undefined;
9
19
  //# sourceMappingURL=cli.d.ts.map
package/dist/cli.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;GAKG"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAiKH,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAAmB,GAAG,OAAO,CAM/J;AAwyFD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CASrE"}