sync_file
Copy a file from source to target within the same session repository, with optional SHA-256 verification to ensure file integrity.
Instructions
Copy a file from source to target within the same Direct session repo. This legacy operation is outside the first Direct review MVP and is disabled when directReview.mode=enforce. Both paths must be inside the session repo_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Direct session ID | |
| source_path | Yes | Relative path to source file within repo | |
| target_path | Yes | Relative path to target file within repo | |
| expected_source_sha256 | No | Optional: expected sha256 of source file | |
| expected_target_sha256 | No | Optional: expected sha256 of target file before copy |