new polyswarm-cli version#238
Merged
Merged
Conversation
Fix stored only output
artifact-index /v3/sample now accepts an llm_report_id resource id; mirror the existing --*-id pattern and plumb it through to api.sample(). The global -c/--community flag already populates api.community, which polyswarm-api now sends in the POST body — no other CLI change needed. Adds VCR + click cassettes for text and JSON outputs.
The artifact-index sample response includes an `ip_analyzer` entry inside `tasks` for URL artifacts. The text formatter only iterated artifact_instance / llm_report / sandbox_cape / sandbox_triage, silently dropping it. Add it alongside the others. The existing renderer logic handles the requested/rendered/status shape, so no further changes are needed.
A task can carry a meaningful requested_status (TIMEDOUT, NOT_TRIGGERED, PENDING, etc.) even when both requested_id and rendered_id are null — e.g. ip_analyzer that timed out before producing metadata. The renderer fell through to "not available", silently dropping the status. Add an explicit branch that prints just the status in that case.
The artifact-index sample endpoint exposes a canonical requested_status for every entry in `tasks` (artifact_instance, ip_analyzer, llm_report, metadata, sandbox_cape, sandbox_triage). The renderer previously chose between "ID X (status)", "ID X (ready)", "status alone", and "not available" based on which fields were populated, and could drop the status when only rendered_id was present. Reorder the branches so requested_status always wins when set, and add the missing Metadata row to task_items. The new ordering also handles rendered_id-only responses by surfacing it as "(ready)".
The sample command depends on the new endpoint_fmt mechanism and the POST-with-community sample call introduced in polyswarm-api 3.20.0.
feat(sample): expose --llm-report-id flag
mjbradford89
approved these changes
May 7, 2026
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.
No description provided.