feat: add pixelvault export command#7
Merged
Merged
Conversation
Export every image in a project as a tar archive (manifest.json + all images) via the async bulk-export API: POST /v1/export → poll GET /v1/export-jobs/:id → download the tar. Flags: --output, --extract (system tar), --timeout, --json. Refuses to write a 0-byte archive; surfaces the 409 "already in progress" case with a helpful message. Progress to stderr, archive path to stdout. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
pixelvault export— pulls every image in a project as a tar archive (manifest.json+ all images), the CLI half of the free no-lock-in "export everything" story.Flow (secret-key, project-scoped):
POST /v1/export→ jobGET /v1/export-jobs/:id(backoff 1s→5s,--timeout) with progress to stderr/download→ write to--output(defaultpixelvault-export-<job>.tar)--extractvia the systemtarSafety: refuses to write a 0-byte archive; maps the 409 "already in progress" to a clear message.
--jsonemits the final job; the archive path goes to stdout (progress to stderr) so it composes.Depends on the API endpoints in pixelvault-dev/pixelvault#143 (not yet deployed) — the command builds against that contract; full end-to-end needs the API live.
Verified: typecheck + build clean, 30 tests pass (incl. the
defaultOutputPathhelper),--helprenders.🤖 Generated with Claude Code