Add CLI for managing SFTP recording backups
This commit is contained in:
21 files changed
+1732
-2
No files matched your search
@@ -88,6 +88,15 @@ The connected-test task can target every connected device. Verify device identit
|
||||
|
||||
Two recording-limit integration tests capture for a real minute. Keep meaningful coverage for pause exclusion, screen-off/background behavior, stop/split boundaries, playable output, bookmarks, and preference persistence when those behaviors change. Compile device tests even when no suitable emulator is available, and report that execution remains unverified. For UI changes, inspect scrolling, round-screen clipping, large multi-digit minutes, rotary input, and accessibility descriptions. Documentation-only edits do not need an Android rebuild.
|
||||
|
||||
## Optional Desktop Backup CLI
|
||||
|
||||
- `tools/remember_cli/` is a separate Python 3.10+ package (`pyproject.toml`) with the `remember` command; `tools/remember` is its checkout launcher. Keep SFTP/local destinations explicit (`user@host:/root` or local path), without a required Remember config file. Do not add Python dependencies to the APK.
|
||||
- Preserve version-1 watch manifests, stable IDs, titles, millisecond bookmarks, unknown fields, and the 500 MB per-file bound. Metadata remains the completion marker. Validate/bound untrusted metadata and escape terminal control sequences. Never derive local paths or commands from titles.
|
||||
- Use required known-host or explicit SHA256 verification before SSH authentication; never add a skip-verification mode or expose private keys/passwords in arguments, output, or fixtures. Keep SFTP-only operation, one connection, bounded buffers, and no remote shell/checksum dependency. SSH agents and optional common SSH configuration may be reused.
|
||||
- Downloads verify size and SHA-256 before publication, retain safe resumable partials, and preserve old local audio on failure. Sync never propagates remote deletion locally. Respect the destination lock and reject linked/special files.
|
||||
- CLI server mutations are explicitly supported separately from the watch UI: title edits preserve other metadata and require atomic replacement, `rm` uses recoverable `.remember-trash`, restore verifies audio and refuses conflicts, and permanent purge requires confirmation/`--yes` for an explicit selection. Do not recursively delete unknown paths or follow symlinks. Preserve diagnostics/recovery for interrupted moves; document races with watch uploads and never claim a cross-client transaction.
|
||||
- Run `python -m unittest discover -s tests/cli -v` in an isolated environment. Network tests use only `tools/sftp_fixture.py` on loopback with disposable keys/files. Build with `python -m build`; verify wheel installation. No Android rebuild is needed for CLI-only changes. Update `docs/cli.md`, backup/privacy documentation, and notices as relevant.
|
||||
|
||||
## Commit & Pull Request Guidelines
|
||||
|
||||
Use concise, descriptive commit subjects. Keep PRs focused, explain behavior changes, and report validation. Include round-screen screenshots for UI changes and link relevant issues when applicable. Use disposable recordings for screenshots. Report which checks ran, any failures or skipped device tests, and remaining physical-watch limitations. Do not commit or push unless the user asks; preserve their staging and unrelated changes.
|
||||
|
||||
Reference in new issue
Block a user