e7b65c1fea
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.
43 lines
1.6 KiB
Modula-2
43 lines
1.6 KiB
Modula-2
module github.com/david/knox
|
|
|
|
go 1.26
|
|
|
|
require (
|
|
github.com/fsnotify/fsnotify v1.8.0
|
|
github.com/modelcontextprotocol/go-sdk v1.8.0
|
|
github.com/pierrec/lz4/v4 v4.1.33
|
|
github.com/prometheus/client_golang v1.24.1
|
|
github.com/spf13/cobra v1.9.1
|
|
modernc.org/sqlite v1.37.1
|
|
)
|
|
|
|
require (
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/google/jsonschema-go v0.4.3 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/kylelemons/godebug v1.1.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
|
github.com/prometheus/client_model v0.6.2 // indirect
|
|
github.com/prometheus/common v0.70.1 // indirect
|
|
github.com/prometheus/procfs v0.21.1 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/segmentio/asm v1.1.3 // indirect
|
|
github.com/segmentio/encoding v0.5.4 // indirect
|
|
github.com/spf13/pflag v1.0.6 // indirect
|
|
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
|
|
golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
|
|
golang.org/x/oauth2 v0.36.0 // indirect
|
|
golang.org/x/sync v0.21.0 // indirect
|
|
golang.org/x/sys v0.47.0 // indirect
|
|
golang.org/x/time v0.15.0 // indirect
|
|
google.golang.org/protobuf v1.36.11 // indirect
|
|
modernc.org/libc v1.65.7 // indirect
|
|
modernc.org/mathutil v1.7.1 // indirect
|
|
modernc.org/memory v1.11.0 // indirect
|
|
)
|