Files
david e7b65c1fea
build / test (push) Has been cancelled
build / image (push) Has been cancelled
feat: ingest Brevier reading copies and phone notes (#48)
Brevier keeps a copy of every page read and exports notes from the phone, and
none of it reached knox. This adds a source for both.

Archive copies are Markdown with title/source/read front matter, written as
<archive>/<host>/<date>-<slug>.md.lz4 or .md depending on the reader's setting.
Both forms are read: the setting only changes how new copies are written, and
the older ones stay compressed. Entries are keyed by the source URL, so a page
read on several days updates one entry and the content hash carries the
version, instead of the archive's one-file-per-day turning into duplicate
entries.

The phone is a different problem. Its archive is app-private and never leaves
the device (upstream leaves bulk export undecided), so what can arrive is the
notes export and per-page saves. Those are dropped into an inbox directory and
read in both shapes Brevier produces: one file with front matter, a zip with one
page per file, and a single file with '## [title](url)' sections. A saved
article carries no address, so it is keyed by its content; re-saving an
unchanged page dedupes.

Also checks the Flatpak sandbox path for the archive, since that is where a
desktop install actually writes.
2026-11-08 16:31:11 -08:00
..