mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
Lists a package's versions with status, revision, and origin, the second of the six missing list/lifecycle actions (ListPackageVersionAssets already shipped). Scoped to all five formats from the start, matching real AWS: none of the action's own format-field documentation carries a generic-only restriction. For generic, reads straight from the stored packageVersions records. Container-backed formats (maven/npm/pypi/nuget) have no such record, so each sidecar client gains a new RepositorySidecarManager.listPackageVersions primitive: Reposilite's artifact-level directory listing plus each version's own lastModifiedTime, Verdaccio's packument versions/time maps, pypiserver's per-project JSON releases keys plus a HEAD on each version's file for Last-Modified, and BaGetter's flat-container index.json plus the NuGet V3 Registration resource's catalogEntry.published (read only as an internal timestamp source, not as a registration endpoint exposed to real NuGet clients). Every container-backed version reports status Published, the same convention DescribePackageVersion's own bridge already established. Real-AWS behavior confirmed against the wire model and the User Guide before writing any code: default page size is 50 (not the 100 this codebase's other List actions use), sortBy=PUBLISHED_TIME is always applied (the only value that enum has) most-recent-first, Archived and Disposed versions are excluded unless the caller filters by that exact status (two sibling actions' own docs name this operation as the one that hides them), Unlisted stays included by default, and originType filtering to EXTERNAL/UNKNOWN always answers empty since Floci never ingests from an external connection. defaultDisplayVersion prefers npm's own dist-tags.latest, falling back to the most recently published Published version for every format (the only stated rule for Maven/PyPI; applied to generic/NuGet too as the best-justified inference, since AWS states no rule for those two). Verified live against all four real sidecar containers, not just mocks, with new Docker-gated tests per format (Maven 26/26, npm 25/25, pypi 24/24, nuget 17/17 overall), plus the fast CodeArtifactServiceTest suite (210/210). Checkstyle and docs-check clean.