Skip to content

Anabasis 3.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 14:32
1d93637

Anabasis 3.1 makes GitHub backup a way to pass drafts back and forth: between your own devices, or with a co-author, taking turns and merged word by word. Backups written by 3.1 go into a folder for each project; 3.0’s single-file backups still open.

Added

  • Passing drafts through GitHub. Every backup now carries the merge record that Merge another copy uses. Get latest (in the GitHub dialog) brings the newest backup’s changes into your copy: changes to different paragraphs combine, a paragraph you both changed keeps both versions, outlined for you to read over, and nothing either of you wrote is lost. Notes, sources and pictures from the other copy come in too, and each merged chapter gets a safety draft. Back up now, when GitHub has something newer, merges it first and then backs up both, and tells you what was merged.
  • Merge it in. When an automatic backup finds GitHub ahead, the notice offers Merge it in, as well as opening the newer backup instead. Automatic backups never change the text while you’re writing.
  • The GitHub token’s own password. Tick Remember and Anabasis asks you to choose a password, then stores the token encrypted with it (Argon2id, then AES-256-GCM), never as plain text. It asks once a session, the first time you back up or open something from GitHub. If an automatic backup comes due while the token is locked, a notice says backups are paused, with Unlock. The dialog shows only the token’s last four characters. Show and Copy ask for the password every time. Forgot it? Forget the token lets you start again with a new token; nothing on GitHub is lost. The token locks again when a locked project hides itself after being idle.
  • A readable copy of each chapter on GitHub. Unlocked projects back up chapters/NN Title.md for each chapter and a README listing them with word counts, so the book can be read on GitHub, and each chapter’s History there shows what changed in it at each backup.
  • Commit messages say what changed: below the summary line, a line for each chapter (“Book Two: +412 words”, new, edited, removed or renamed). History in Anabasis shows who made each backup.
  • The wiki page GitHub backups and co-writing: setting up, the token and its password, what’s in the repository, passing drafts, writing with someone else through a free GitHub organization, locked projects, the limits, and what to do when something goes wrong.

Changed

  • Each project backs up to a folder of its own on GitHub: project.json, pictures/ with each picture once, merge/ with the merge record, and the readable chapters. A backup sends only what changed, so a picture-heavy book no longer re-sends every picture each time. Pictures the project no longer uses leave the folder; every earlier backup keeps the pictures it named, so History still opens it whole. An empty repository gets a short README. Your first 3.1 backup moves a project from its 3.0 file into its folder; 3.0’s backups still list, open and show in History.
  • A remembered token is no longer stored as plain text. A token 3.0 stored that way still works this session, and a notice offers a password; the plain-text copy is deleted once you choose one. A token 3.0 sealed with a locked project’s key is read when that project unlocks, and moved over the same way.
  • Back up now no longer asks whether to put your copy on top of a newer 3.1 backup: it merges. For a newer backup made by 3.0, which has no merge record, it asks as before.
  • Two backups at the same moment: a backup that loses the race to another is tried again on top of it, merging first, so both are kept.

Security

  • Pictures from GitHub are checked. An unlocked project’s pictures are named by their SHA-256, recomputed when they come back; a picture changed or damaged on GitHub stops the open with a plain message. The file type must match what the project says, only PNG, JPEG, GIF and WebP are accepted, and names must be 40–64 hex characters, so a name can’t climb out of the folder.
  • Locked projects stay locked on GitHub. Pictures and merge records are sealed with the project’s key (AES-256-GCM), each with its own path as associated data so they can’t be swapped; picture names come from a keyed hash, not a fingerprint anyone could check a known picture against. There are no readable chapters, the project’s README only says it’s locked, commit messages leave out the title, and a project locked before its first backup goes into a folder named Locked-project-…. Locking a project that was backed up unlocked removes its readable copies from the folder; GitHub’s history still holds what earlier backups held.
  • Merge records from GitHub are checked before they’re used: names must belong to a chapter the backup lists, and each must load as a merge record, or the merge stops before any text changes.

Download anabasis.html, open it in your browser, and choose Save to keep your project. SHA-256 checksum in SHA256SUMS.txt; to check where it was built, run gh attestation verify anabasis.html -R gmichaelrapp/anabasis.