Skip to content

Add --method flag to import uploads (diff importer support)#42

Open
joehoyle wants to merge 2 commits into
mainfrom
add-import-uploads-diff-method
Open

Add --method flag to import uploads (diff importer support)#42
joehoyle wants to merge 2 commits into
mainfrom
add-import-uploads-diff-method

Conversation

@joehoyle
Copy link
Copy Markdown
Member

@joehoyle joehoyle commented May 8, 2026

Summary

  • Adds --method diff|legacy option to altis-cli stack import uploads, wiring it to the REST endpoint added in vantage-backend#2443. The diff method skips unchanged files for significantly faster re-imports (40× faster when most files are unchanged).
  • Fixes a crash in stream.js where got.default.stream() was called — got is already the default export from import got from 'got', so got.stream() is the correct call.

Usage

altis-cli stack import uploads <target> --from <source> --method diff

Test plan

  • import uploads with no --method flag behaves as before (server defaults to legacy)
  • import uploads --method diff passes method: "diff" in the POST body
  • import uploads --method legacy passes method: "legacy" in the POST body
  • Stream log connects and renders correctly after the got.stream fix

🤖 Generated with Claude Code

joehoyle and others added 2 commits May 8, 2026 10:15
Adds --method diff|legacy option to the import-uploads command,
threading it through to the REST endpoint added in vantage-backend#2443.
The diff method skips unchanged files for significantly faster re-imports.

Also fixes a crash in stream.js where got.default.stream was called —
got is already the default export so got.stream is the correct call.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds --method diff|legacy option to `altis-cli stack import uploads`,
wiring it to the REST endpoint from vantage-backend#2443. The diff method
skips unchanged files for significantly faster re-imports.

Also fixes a crash in stream.js where got.default.stream was called —
got is already the default export so got.stream is the correct call.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@joehoyle joehoyle requested a review from jerico May 8, 2026 14:27
@joehoyle joehoyle changed the title Add --method flag to import-uploads (diff importer support) Add --method flag to import uploads (diff importer support) May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant