- Add fetch_download_manifest() to client for MP3 manifest endpoint - Add download_zip_part() for streaming ZIP download, .partial tracking, resume via Range header, auto-extraction and cleanup - Refactor download_book() with format_strategy param: m4b_mp3_fallback, mp3_only, m4b_only - Add --limit N CLI flag to cap downloads for testing - Wire config.format through CLI to download_book() - 12 new tests (122 total), all passing
2.0 KiB
2.0 KiB
Agent Instructions
Session Logs
Session logs are written to docs/devlog/ after each completed task, issue fix, or milestone.
They capture what was done, decisions & rationale, gotchas & fixes, and next steps. Before starting a new session, read the previous session logs.
| Date | Type | File | Summary |
|---|---|---|---|
| 2026-06-03 | slice | 20260603-slice-6-mp3-fallback-issue6_log.md | Issue #6 Complete: MP3 fallback pipeline — manifest fetch, ZIP download+extract+resume, format strategy selector (m4b_mp3_fallback/mp3_only/m4b_only), --limit CLI flag. 12 new tests, 122 total · 11/11 AC |
| 2026-06-03 | issue | 20260603-slice-3b-live-testing-fixes-issue5_log.md | Issue #5 Live Fixes: 4 critical API-shape bugs found & fixed (audiobooks key, m4b_url key, nested narrators, ISBN int/str). Download loop wired. --verbose flag. 109 tests, 6 books downloaded (~2.9 GB) · 11/11 AC |
| 2026-06-03 | slice | 20260603-slice-3b-m4b-download-pipeline-issue5_log.md | Issue #5 TDD: M4B download pipeline — client endpoint, streaming downloader with resume, path integration, history post-download, CLI orchestration. 11 new tests, 108 total · 11/11 AC |
| 2026-06-03 | slice | 20260603-slice-3a-path-resolution-and-sanitization-issue4_log.md | Issue #4 Complete: Path resolution + sanitization + Book model + custom patterns. 56 new tests, 97 total · 16/16 AC |
| 2026-06-03 | issue | 20260603-project-scaffolding-and-config-module-issue2_log.md | Issue #2 Complete: pyproject.toml + venv + config module (load/merge/validate) + 25 tests. 11/11 AC met |