list_documents (ls.rs), delete_document (rm.rs), and download_and_decrypt (download.rs) are pure XRPC+record logic with no CLI concerns (no filesystem, no config, no prompts). They belong in opake-core so they're reusable by the future web AppView. Proposed location: opake-core/src/documents.rs (or operations.rs). CLI commands become thin wrappers that call core functions + handle I/O. This is a refactor — no behavior change, no new tests needed beyond verifying existing tests still pass.
list_documents (ls.rs), delete_document (rm.rs), and download_and_decrypt (download.rs) are pure XRPC+record logic with no CLI concerns (no filesystem, no config, no prompts). They belong in opake-core so they're reusable by the future web AppView. Proposed location: opake-core/src/documents.rs (or operations.rs). CLI commands become thin wrappers that call core functions + handle I/O. This is a refactor — no behavior change, no new tests needed beyond verifying existing tests still pass.