feat(cli): add dataset-versions list command #17758
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 396 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.358
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #17758"
general
weight: 0.35
chrikrah
resolves #12016
What
Add
px dataset-versions list <dataset-identifier>to list a dataset's versions. It follows the scope agreed forprompt-versions listin #12019 (#17189).dataset-versionsnoun with alistverb, keeping the two-levelpx <noun> <verb>shape (the issue title'spx dataset versions --dataset <id>form predates that convention).resolveDatasetId, becauseGET /v1/datasets/{id}/versionsonly accepts an ID.next_cursorin pages of 100 (the endpoint's default page size is 10).--limitcaps the total, and--format pretty|json|rawis supported.version_id,descriptionandcreated_at(local time). JSON and raw output return the full objects, includingmetadata, with the original timestamp string.No dataset versions found(or[]) and exits 0. An unknown dataset name exitsFAILUREwith apx dataset listhint.writeStructuredErrorwith semantic exit codes, the same wayprompt-versions listdoes.px dataset get --versionhelp now points atpx dataset-versions list.DatasetVersionresponse already includescreated_at.Docs: the CLI README, the
phoenix-cliskill (both copies) and a changeset.Example
Validation
test/datasetVersionsCommand.test.ts, modeled onpromptVersionsCommand.test.ts. They cover ID passthrough, name resolution, an unknown name, cursor pagination,--limit(including oversized pages), an empty dataset in every format, an empty final page, HTTP 404/422/500, network errors, invalid limits, missing config, a run against the generated handlers alone, help examples, and formatter output.oxfmt --checkandoxlintare clean on the package.tsc --noEmitreports no errors in the changed files. Six existing errors (annotator kindAGENT, insession.ts,span.ts,trace.tsand the*Annotations.tsfiles) appear on cleanmainin my local checkout too, so they are unrelated to this change.🤖 Generated with Claude Code