Add run artifacts CLI subcommand#724
Conversation
Greptile SummaryAdds
Confidence Score: 5/5The change is a self-contained stub command that mirrors three already-merged commands; no existing behaviour is altered. The new artifacts subcommand is pure additive: it follows the exact same structure as status and logs, touches no shared state, and the only output paths are a console.log stub or a JSON.stringify of a hardcoded empty object. The accompanying test correctly validates command registration. Nothing in the changed code can regress existing functionality. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[sh1pt run artifacts runId] --> B{--json flag?}
B -- yes --> C["console.log(JSON.stringify({ id, artifacts: [] }))"]
B -- no --> D["console.log(kleur.dim('[stub] run artifacts · id=...'))"]
C --> E[return]
D --> F["// TODO: GET /v1/runs/:id/artifacts"]
Reviews (1): Last reviewed commit: "Add run artifacts command" | Re-trigger Greptile |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
15 similar comments
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
|
🤖 Auto-rebase: The branch was rebased successfully locally but could not be pushed to the fork. Please enable 'Allow edits from maintainers' in the PR settings, or rebase manually: |
Refs #133.
Adds a
sh1pt run artifacts <runId>subcommand alongside the existing run list, status, and logs commands. The command currently matches the stubbed run-command style and supports--jsonoutput for future API integration.Changes:
run artifacts <runId>with human-readable stub output--jsonoutput returning{ id, artifacts: [] }artifactsTests:
git diff --check origin/master...HEADpnpm --filter @profullstack/sh1pt-cli test -- runs.test.tsblocked locally:pnpmnot available in PATH/claim #133