feat(cli): add Kindle SDR highlight extraction - #16
Draft
AnnatarHe wants to merge 1 commit into
Draft
Conversation
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Contributor
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #16 +/- ##
===========================================
+ Coverage 22.22% 43.68% +21.45%
===========================================
Files 8 13 +5
Lines 594 1527 +933
===========================================
+ Hits 132 667 +535
- Misses 454 702 +248
- Partials 8 158 +150
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ck-cli sdr --path PATH [--json]with automatic Kindle tree,.sdr, and single-book discoveryClippingItemJSON outputWhy
Kindle
.azw3rsidecars store annotation positions rather than the highlighted words. Recovering the text requires joining those positions with the sibling book's reconstructed KF8 markup stream.Impact
The command is read-only, offline, and has no Python or KindleUnpack runtime dependency. It extracts highlights, note spans, and underlines while preserving the existing JSON schema. DRM, Mobi7, and KFX/
.yjrremain explicitly unsupported.Validation
go test ./...go vet ./...go build ./cmd/ck-cli