Expose structured entry documents for frontend clients #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Objective
Expose a presentation-neutral structured entry document from
crates/storageso every frontend can view and edit arbitrary pass entries without parsing display strings.Scope
name: valuefields, duplicate field names, OTP URIs, blank lines, free-form notes, and unrecognized lines with stable field IDs and ordering.Acceptance criteria
Prerequisites
Safe password-store repository core; embedded GPG-compatible cryptography; insert/edit behavior.
Implemented in commit
2aabd58(pushed to main).What changed:
crates/storage::documentAPI that opens logical entries through storage and exposes ordered fields with stable in-document IDs.EntryDocumentService::save, which consumes the original edit session and therefore reuses recipient resolution, GPG-compatible encryption, atomic replacement, automatic commit, concurrent-ciphertext detection, and rollback on commit failure. No document metadata or competing format is written to disk.Verification completed:
All checks passed. The implementation was reviewed against every acceptance criterion; frontends require no repository reads, plaintext parsing, recipient selection, encryption, or file writes.