feat(transfer): add streaming cat, resumable Range downloads, and transfer deadlines
- Add O(1)-memory chunked Client.stream_request with total transfer deadline and premature-EOF detection - Add pages cat --stream with incremental stdout output and end-of-stream SHA-256 verification - Add pages get --resume with private 0600 staging, Range/If-Range/Content-Range checks, full re-hash before atomic no-clobber commit, and --max-bytes/--timeout - Pre-check 1 MiB limit in pages put and update docs and unit tests
This commit is contained in:
1 parent
a7ef59f8c0
commit
13a4416af9
4 files changed
+690
-32
No files matched your search
@@ -150,8 +150,8 @@ OSの言語からは推測しません。最初に名前付きプロファイル
|
||||
| コマンド | 用途 |
|
||||
| --- | --- |
|
||||
| `ls` / `cd` / `pwd` | Semantic Pathをたどる。仮想フォルダにも移動可能 |
|
||||
| `cat` / `view` | 正本の出力/`$PAGER`で閲覧 |
|
||||
| `get ADDRESS LOCAL` | 正本をダウンロード。既存のローカルファイルは上書きしない |
|
||||
| `cat` / `view` | 正本の出力(`--stream` で逐次出力+終端SHA-256検証)/`$PAGER`で閲覧 |
|
||||
| `get ADDRESS LOCAL` | 正本をファイルへ安全保存(`--resume` / `--max-bytes` / `--timeout`、既存ファイルは上書きしない) |
|
||||
| `edit ADDRESS` | `$EDITOR`で編集。未存在Pathは確認後に新規作成。Wikiはauthoring Markdown、他のテキストは原文 |
|
||||
| `put LOCAL ADDRESS --base REVISION_UUID` | 明示した基点RevisionとのCASで更新 |
|
||||
| `recover [PATH]` | 退避された原稿の一覧表示・再開・破棄(`--list` / `--edit` / `--discard`) |
|
||||
|
||||
Reference in new issue
Block a user