Expand description
Local deterministic dedupe by canonical URL.
Algorithm:
- Group by
canonical_url. - Within each group, pick the canonical record (oldest
created_at, ties broken by lowestid). - Report all conflicts: same canonical URL but differing title / tags / collection.
Per SPEC.md §Feature 5, the CLI exposes --dry-run (default) and
--apply. Apply is gated on an explicit token at the CLI layer.
This crate provides the algorithm; the CLI provides the gate.
Structs§
- Conflict
Record - A single conflict record. Two bookmarks share
canonical_urlbut disagree on a field. - Dedupe
Report - Full dedupe report.
Functions§
- dedupe
- Run the dedupe algorithm.