v9.7.0 Multi-Segment Batching
What's New
Multi-Segment Batching
When the Gemini context window has enough headroom, consecutive video segments are grouped into single API calls. This reduces API calls and gives the model better cross-segment awareness.
- Greedy bin-packing by token budget (~300 tok/sec per video)
- Deep summary synergy freed doc tokens mean larger batches
- Cache-aware only uncached segments hit the API
- Automatic fallback if a batch fails, falls back to single-segment processing
--no-batchto disable
Interactive CLI Render Fix
Fixed line-wrap garble in narrow terminals all rendered lines are now truncated to terminal width via fitToWidth()
Code Audit
- Removed 7 unused imports (html.js, docx.js)
- Fixed variable shadowing in diff-engine.js
- Added comments to 9 empty catch blocks in video.js
cleanupGeminiFilesnow accepts arrays for batch cleanup- 13 new tests (345 total, all passing)
Install
npm install -g task-summary-extractor