Skip to content

fix(cli): preset notes per tool, extra-arg guard, per-command --help, real versions - #24

Merged
skansal-rome merged 1 commit into
mainfrom
fix-cli-ux
Jul 22, 2026
Merged

fix(cli): preset notes per tool, extra-arg guard, per-command --help, real versions#24
skansal-rome merged 1 commit into
mainfrom
fix-cli-ux

Conversation

@skansal-rome

Copy link
Copy Markdown
Contributor

Five small UX/correctness fixes surfaced by exercising every command against a live chain:

  • preset hardhat carried the foundry-only forge script --skip-simulation note; notes are now tool-specific (shared Rome quirks + per-tool additions).
  • Extra positional args were silently droppedrome call <chain> <addr> <sig> 0xA 0xB fed only 0xA to the ABI encoder and surfaced as a raw viem params/values length mismatch. Now errors with the comma-separated-args hint and points at --help.
  • rome <cmd> --help previously fell through to "Missing required: …"; now prints per-command usage, summary, and arg descriptions.
  • rome --version and MCP serverInfo were hardcoded to 0.1.0; both now read the package.json version.
  • rome facts programs testnet silently returned {}; now carries a note that Rome testnet chains settle on the Solana devnet cluster.

Also README: lead install with npx and document clone+link — a plain npm install -g github:… fails because npm prepares the package's github: dependencies without their own node_modules (see the companion issue).

Tests: 8 new (107 total, all green); typecheck clean; all five fixes re-verified against the built dist/bin.js on a live chain.

…help, real versions

- preset hardhat no longer carries the forge-only skip-simulation note
- extra positional args error with the comma-separated-args hint instead
  of being silently dropped into a raw ABI length mismatch
- rome <cmd> --help prints per-command usage + arg descriptions
- CLI --version and MCP serverInfo read the version from package.json
- facts programs testnet explains the empty set (settles on Solana devnet)
- README: npx-first install; plain npm -g from a github: URL fails (git
  deps are prepared without their node_modules), documented clone+link
@skansal-rome
skansal-rome merged commit 3949229 into main Jul 22, 2026
6 checks passed
@skansal-rome
skansal-rome deleted the fix-cli-ux branch July 22, 2026 18:22
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