feat: ingest Brevier reading copies and phone notes #53
Reference in New Issue
Block a user
Delete Branch "feat/brevier-ingest"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #48.
Brevier keeps a copy of every page read and can export notes from the phone. None of it reached knox.
Archive copies
<archive>/<host>/<date>-<slug>.md.lz4, or.mdwhen the reader turns plain copies on. Front matter istitle / source / read, then the article Markdown.readstamp, normalised to UTC.~/.var/app/io.github.gurov.brevier/data/brevier/archive), which is where a desktop install actually writes.Phone exports
The phone's archive is app-private and never leaves the device — upstream leaves bulk export undecided (roadmap #15). What can arrive is the notes export (Your notes → share) and per-page Save. Both go into
BREVIER_INBOX(default~/.local/share/knox/inbox/brevier), which a Syncthing folder can mirror.Three shapes are handled:
sourcebrevier-notes.mdper page (images ignored)brevier-notes## [title](url)sectionsbrevier-notesbrevier,reading/savedA saved article has no address in the file, so it is keyed by its content — re-saving an unchanged page dedupes, and a changed one is a new version.
Wiring
knox brevier, included inknox ingest, and an hourly ticker insideLocalSourcesEnabled()(the archive only changes when something is read).Verification
go test ./...andgo vetgreen.knox breviercorrectly reports "No Brevier copies or note exports found" — live data needs the phone or a desktop archive.Not in scope
Bulk archive export from the phone; that is an upstream feature (declined for now, see #49).