feat(#44): add --diff and --output flags to snapshot command#473
feat(#44): add --diff and --output flags to snapshot command#473giulio-leone wants to merge 2 commits intovercel-labs:mainfrom
Conversation
|
@giulio-leone is attempting to deploy a commit to the Vercel Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for the contribution, @giulio-leone! Reducing context consumption is a real need for AI agents. I pulled the branch, rebuilt both TypeScript and Rust CLI, and tested E2E. What works:
Issues to address:
|
Summary
Adds incremental snapshot (
--diff) and save-to-file (--output) options to reduce context consumption.Changes
--diff: Only returns lines that changed since the last snapshot (frequency-map comparison handles duplicate lines correctly)--output <path>: Saves snapshot to file instead of returning full contentgetSnapshot()to avoid race conditionas anycasts)Usage
Closes #44