feat: dedupe documents by (did, rkey) across collections
When platforms dual-publish to both their own schema and site.standard
(like pckt does), the same content gets indexed under different URIs:
- at://did/blog.pckt.document/abc123
- at://did/site.standard.document/abc123
This adds:
- UNIQUE index on (did, rkey) for documents and publications
- Dedupe logic in insertDocument/insertPublication that cleans up
old records when same (did, rkey) appears with a different URI
The last-seen URI wins, so site.standard takes precedence if it
arrives after the platform-specific record.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>