You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context around tracked changes (#64) - listTrackedChanges and listReview accept surroundingChars. With it, each change carries before and after: up to that many characters of the visible text right before and right after the change. This lets an integration find a change again in a local copy that has moved on since, which position alone cannot do, especially for deletions. Works for sharejs-text-ot and history-ot docs. Off by default, so CLI output and JSON are unchanged. Thanks to @fredericosantos
acceptTrackedChangesInDoc(projectId, docId, ids) (#67) - accepts tracked changes in one doc with a single request, without reading the whole project before and after. Meant for editor integrations that already know the doc and read the project again themselves. acceptTrackedChanges now uses it internally and still checks the result; its behavior is unchanged. Thanks to @fredericosantos
Tracked-change types exported (#65) - TrackedChange, ListTrackedChangesOptions, ProjectReview, the acceptance and rejection plan types, RejectConflictError, TrackedChangeKind, TrackedChangeAuthor and ShareJsTextOp are exported from @aloth/olcli, so library code no longer has to import from dist/client.js. Thanks to @fredericosantos
Fixed
Rate-limited requests are retried (#63) - Overleaf answers a burst of requests with HTTP 429 for about 25 seconds, so a command that sends several requests in a row, such as adding a comment and then reading the threads back, could fail with "Overleaf is rate limiting requests". Every request now retries a 429 up to 5 times, after about 1, 2, 4, 8 and 16 seconds with random jitter, or after the time in Retry-After when Overleaf sends one, capped at 60 seconds. A 429 means Overleaf did nothing, so retrying is safe for every request. --verbose logs each retry. The additional sockets olcli opens to read many docs in parallel do not retry, so a rate limit there still just drops that socket. Thanks to @fredericosantos