Skip to content

feat: migrate to @metamask/messenger-cli for action types codegen#579

Merged
cryptodev-2s merged 11 commits intomainfrom
feat/messenger-cli-action-types
Apr 6, 2026
Merged

feat: migrate to @metamask/messenger-cli for action types codegen#579
cryptodev-2s merged 11 commits intomainfrom
feat/messenger-cli-action-types

Conversation

@cryptodev-2s
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s commented Apr 4, 2026

Explanation

Migrates from the deprecated messenger-generate-action-types binary in @metamask/messenger to the new standalone @metamask/messenger-cli package.

Changes

  • Add @metamask/messenger-cli@^0.1.0 as devDependency
  • Add per-package scripts:
    • messenger-action-types:check — checks if generated files are up to date
    • messenger-action-types:generate — generates/updates action type files
  • Integrate into lint (--check) and lint:fix (--generate)
  • Remove old generate-method-action-types script

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate

Note

Medium Risk
Mostly build/lint tooling changes, but it updates the runtime dependency on @metamask/messenger to ^1.1.0, which could surface type/runtime incompatibilities for consumers.

Overview
Migrates messenger action-type generation from the custom scripts/generate-method-action-types.ts (and tsx-based scripts) to @metamask/messenger-cli via new messenger-action-types:check/:generate scripts, wiring them into lint and lint:fix.

Removes the legacy generator script and associated dev deps/allow-scripts entries, updates the generated header comment in SmartTransactionsController-method-action-types.ts, and records/bakes in a bump of @metamask/messenger to ^1.1.0 (with corresponding yarn.lock updates).

Reviewed by Cursor Bugbot for commit 70c6526. Bugbot is set up for automated code reviews on this repo. Configure here.

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 4, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​metamask/​messenger-cli@​0.1.0761007589100

View full report

@cryptodev-2s cryptodev-2s marked this pull request as ready for review April 4, 2026 10:06
@cryptodev-2s cryptodev-2s requested a review from a team as a code owner April 4, 2026 10:06
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ae4a91a. Configure here.

@cryptodev-2s cryptodev-2s enabled auto-merge (squash) April 6, 2026 15:58
Copy link
Copy Markdown
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cryptodev-2s cryptodev-2s merged commit 1afaeac into main Apr 6, 2026
17 checks passed
@cryptodev-2s cryptodev-2s deleted the feat/messenger-cli-action-types branch April 6, 2026 18:32
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.

2 participants