Conversation
Display detailed package metadata from the mops registry, similar to `npm info`. Supports `mops info <pkg>` for latest and `mops info <pkg>@<version>` for a specific version. Made-with: Cursor
- Add missing `import process from "node:process"` to match codebase convention - Prevent "Error: Error:" duplication in catch block - Show actual backend error from getPackageDetails instead of hardcoded message Made-with: Cursor
Made-with: Cursor
Add curly braces to all single-line if statements and reformat long lines to satisfy prettier and eslint curly rule. Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Lists all published versions with publication dates and release notes. Usage: mops info <pkg> --versions Made-with: Cursor
Output one version per line with no formatting, making it suitable for piping into other CLI tools. Made-with: Cursor
Drop formatting helpers (formatUser, formatDate, formatSize, formatDownloads) and sections that depend on them (publisher, owners, downloads, file stats, quality, release notes). Keep only simple string fields. Can be extended later. Made-with: Cursor
Made-with: Cursor
- Fix --versions help text (claimed dates, but only prints versions) - Move info import to alphabetical position in cli.ts - Document ascending version order assumption - Update docs with latest indicator and version order Made-with: Cursor
Made-with: Cursor
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.
Summary
Adds a
mops info <pkg>CLI command that displays package metadata from the mops registry.mops info <pkg>— show package info (latest version)mops info <pkg>@<version>— show info for a specific versionmops info <pkg> --versions— list all published versions, one per line (for scripting)Example
Test plan
mops info core— verified outputmops info core@1.0.0— shows "latest: 2.3.1" indicatormops info core --versions— plain version list, one per linemops info nonexistent-pkg— printsError: Package 'nonexistent-pkg' not foundmops info core@99.99.99— prints error for invalid versionmops --help— lists theinfocommand