Skip to content

feat(cli): add mops toolchain info --versions#609

Merged
Kamirus merged 6 commits into
mainfrom
feat/toolchain-info-versions
Jul 22, 2026
Merged

feat(cli): add mops toolchain info --versions#609
Kamirus merged 6 commits into
mainfrom
feat/toolchain-info-versions

Conversation

@Kamirus

@Kamirus Kamirus commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Scripts can list stable GitHub releases for toolchain tools (moc, lintoko, wasmtime, pocket-ic) — the missing counterpart to mops info <package> --versions.

Before:

$ mops toolchain info moc --versions
error: unknown command 'info'

After:

$ mops toolchain info lintoko
lintoko
latest: 0.11.0
pinned          0.7.0
repository      https://github.com/caffeinelabs/lintoko
versions        0.11.0, 0.10.0, 0.9.0, 0.8.0, 0.7.0, 0.6.0, 0.5.1, 0.5.0, 0.4.3, 0.4.2 (+7 more)

$ mops toolchain info moc --versions | head -5
1.11.0
1.10.1
1.10.0
1.9.0
1.8.2

--versions prints newest first and fetches only the first GitHub releases page by default. Pass --versions --all for the full history (cache warming). Human info also uses the first page only — it does not paginate the whole release list just to show ~10 versions.

--versions excludes drafts and prereleases. Stable versions match what mops toolchain update and mops toolchain use <tool> latest resolve to. Interactive mops toolchain use without a version may still show prereleases in its picker.

Works without a mops.toml.

What is unchanged

  • mops toolchain use, update, and bin behavior is unchanged aside from paginated latest resolution (stops at the first stable release instead of scanning only the first 10).
  • mops info <pkg> --versions still prints oldest→newest. Flipping that to newest-first (to match this command) is tracked in NEXT-MAJOR.md.

Kamirus and others added 3 commits July 1, 2026 11:01
Scripts can now list all stable GitHub release tags for toolchain tools,
matching `mops info --versions` for packages. Also paginates release fetches
so version pickers and latest resolution see the full history.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use getLatestReleaseTag for displayed latest, restore bounded getReleases
for the interactive picker, and fast-path latest resolution pagination.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Cursor AI review

👍 APPROVE — looks safe to merge

Category Assessment Details
Summary Adds mops toolchain info (with --versions / --all) and paginates getLatestReleaseTag past the old first-10-only scan so latest can find a stable release. Docs, changelog, and skill updates are included.
Code Quality Pure tag helpers extracted; pagination early-exit for latest is deliberate rather than speculative.
Consistency Mirrors mops info --versions, Commander choices/help, and sibling toolchain UX; docs/CHANGELOG/SKILL stay in sync.
Security Public GitHub releases only; no auth, integrity, or secret-surface changes.
Tests High-signal unit coverage for stable/semver ordering; no redundant snapshots for a network-bound command.
Maintainability Small, focused surface with clear filter/sort semantics and documented truncation behavior.

Verdict

Decision: APPROVE
Risk: Low
Reason: Additive CLI feature with matching docs/changelog/skill updates; the only shared-path change is a contained fix so latest resolution can page past an all-prerelease first window, with no API or registry impact.


Generated for commit 607e711

Kamirus and others added 3 commits July 22, 2026 16:35
Avoid full GitHub pagination for the human summary and --versions; add
--all for full history. Note flipping mops info --versions in NEXT-MAJOR.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Kamirus
Kamirus merged commit 287a92c into main Jul 22, 2026
26 checks passed
@Kamirus
Kamirus deleted the feat/toolchain-info-versions branch July 22, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant