feat: migrate to @metamask/messenger-cli for action types codegen#28397
feat: migrate to @metamask/messenger-cli for action types codegen#28397cryptodev-2s wants to merge 2 commits intomainfrom
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
|
✅ E2E Fixture Validation — Schema is up to date |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 046008c. Configure here.
| "a:setup:android": "scripts/perps/agentic/preflight.sh --platform android --clean --wallet-setup" | ||
| "a:setup:android": "scripts/perps/agentic/preflight.sh --platform android --clean --wallet-setup", | ||
| "messenger-action-types:generate": "messenger-action-types --generate app && prettier --write \"app/**/*-method-action-types.ts\"", | ||
| "messenger-action-types:check": "messenger-action-types --generate app; prettier --write \"app/**/*-method-action-types.ts\" && git diff --exit-code \"app/**/*-method-action-types.ts\"" |
There was a problem hiding this comment.
Semicolon silently ignores generation failure in check script
High Severity
The messenger-action-types:check script uses a semicolon (;) instead of && after the messenger-action-types --generate app command. This means if the generation step fails (non-zero exit), the error is silently ignored, and the script continues to run prettier and git diff --exit-code. Since no files changed (generation failed), git diff --exit-code passes, making the overall lint command succeed even though codegen is broken. The :generate script correctly uses &&, so this inconsistency appears unintentional.
Reviewed by Cursor Bugbot for commit 046008c. Configure here.
046008c to
0708534
Compare
Pull request was converted to draft
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
None of these changes affect:
No E2E tests need to run for these purely tooling/DX changes. Performance Test Selection: |





Description
Migrates from the deprecated
messenger-generate-action-typesbinary in@metamask/messengerto the new standalone@metamask/messenger-clipackage.@metamask/messenger-cli@^0.1.0as devDependencymessenger-action-types:generatescript (generates action type files, scansapp/, runs prettier)messenger-action-types:checkscript (generates and verifies no diff)lintandlint:fixgenerate-method-action-typesscriptsChangelog
CHANGELOG entry: null
Related issues
Related to MetaMask/core#8378
Manual testing steps
Screenshots/Recordings
N/A — developer tooling change, no UI impact.
Pre-merge author checklist
Note
Low Risk
Low risk developer-tooling change that updates action-type codegen commands and lint wiring; main risk is CI/lint failures if the new CLI’s output differs or the check script behavior changes.
Overview
Migrates messenger action-types code generation from the deprecated
messenger-generate-action-typesbinary to the new@metamask/messenger-cli.Updates
lint/lint:fixto run the newmessenger-action-types:check/messenger-action-types:generatescripts, removes the oldgenerate-method-action-types*scripts, and adds@metamask/messenger-cli@^0.1.0to dependencies (with correspondingyarn.lockupdates).Reviewed by Cursor Bugbot for commit 0708534. Bugbot is set up for automated code reviews on this repo. Configure here.