Skip to content

feat(hosted): add authenticated artifact download command - #438

Merged
ankitranjan7 merged 2 commits into
mainfrom
feat/hosted-artifact-download
Aug 26, 2026
Merged

feat(hosted): add authenticated artifact download command#438
ankitranjan7 merged 2 commits into
mainfrom
feat/hosted-artifact-download

Conversation

@ankitranjan7

Copy link
Copy Markdown
Contributor

Merge after Cloud feat/hosted-artifact-download is on main. Until then the command exists but browser-run fallback is missing.

What now works

webcmd artifact download <url> --output <path> authenticates to Cloud and writes the file. Foreign origins never get the token.

Review in 10 minutes

  1. Open src/hosted/artifact-url.ts — origin must match the configured API; path must be /v1/executions/:id/artifacts/:id.
  2. Open src/hosted/client.tsdownloadArtifactFromUrl calls existing downloadExecutionArtifact after parse.
  3. Open src/hosted/runner.test.ts--output required; foreign origin / bad path send no request; success prints the local path.

Out of scope

Auto-copy to cwd. Signed URLs. Local-mode artifact. Public upload.

Next: confirm the Cloud PR is merged, then merge this when CI is green.

Keep cloud-artifact locators and redeem hosted browser-run receipts
through webcmd artifact download --output using Cloud auth.
@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🟢 No documentation gap found — medium confidence

The automated review found no documentation gap in the supplied changes.

This review is advisory and does not block merging.

Treat bad percent-encoding as ArgumentError, honor API pathname prefixes,
and render { output, bytes } when -f json is set.
@ankitranjan7
ankitranjan7 merged commit 0806a0d into main Aug 26, 2026
36 checks passed
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