Skip to content

new polyswarm-cli version#238

Merged
mjbradford89 merged 9 commits into
masterfrom
develop
May 7, 2026
Merged

new polyswarm-cli version#238
mjbradford89 merged 9 commits into
masterfrom
develop

Conversation

@admin-sbneto
Copy link
Copy Markdown
Contributor

No description provided.

mjbradford89 and others added 9 commits April 24, 2026 16:30
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 mjbradford89 merged commit a903690 into master May 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants