mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-11-19 07:26:48 +01:00
* chore(seed): generate seed snapshots from released images and seed more data The seed snapshot generator can now seed a released image (`pnpm seed:snapshot --release 0.34.1`) instead of a local build. Releases before 0.34 have no better-auth, so users are signed up through the legacy users.create procedure there. The seed now also covers text and asset bookmarks, notes, highlights, reading progress, a shared list with an accepted editor and a pending viewer, rules, custom prompts, a feed, a webhook, user settings and an import session. The old snapshot is replaced by snapshots generated from v0.32.0, v0.33.2 and v0.34.1. Each one is a real database written by that release, so they can double as fixtures for testing upgrades to HEAD. `seed:apply` picks the newest version by default and takes `--snapshot` to pick a specific one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(seed): address review feedback on the snapshot tools - seed:apply extracts the archive into a staging dir before replacing data/, so a missing, mistyped or corrupt snapshot no longer wipes existing data, and `--snapshot` without a value is rejected. - The generator fails unless the import session completes with every staged bookmark imported, and records the imported bookmarks and tags in the manifest so its arrays match its counts. - Reading progress offsets are derived from the crawled content's length, so the stored offset and percent agree. - Regenerating an existing release snapshot requires `--replace`. The three release snapshots are regenerated with these changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(seed): reject unknown and incomplete snapshot tool arguments seed:apply now rejects unknown arguments, so a typo such as `--snaphsot` can't fall back to the default snapshot and replace data/ with it under --force. seed:snapshot rejects `--release` without a version instead of silently building the working tree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>