Skip to content

Add restore_commit and restore_file commands to IPC socket API #7

Description

@barissalihbabacan

Problem

Desktop clients and CLI tools communicating over /tmp/osmos-daemon.sock cannot trigger file or tree restoration because the wire protocol lacks restore commands.

Proposed Solution

Add to crates/osmos-daemon/src/api.rs and handler.rs:

  • Command::RestoreCommit { path: String, commit_id: Uuid }
  • Command::RestoreFile { path: String, commit_id: Uuid, file_path: String }

Acceptance Criteria

  • Daemon JSON IPC responds with {"ok": true, "restored": true} upon successful restore.
  • Returns structured error COMMIT_NOT_FOUND or BLOB_NOT_FOUND if reference is missing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions