Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(cli): use actionCommand in postAction hook for update hints (#954)

Cindy Zhang89b56591901c
diff --git a/packages/cli/src/index.mjs b/packages/cli/src/index.mjs
index cd90f17d6b..913350c37c 100644
--- a/packages/cli/src/index.mjs
+++ b/packages/cli/src/index.mjs
@@ -37,9 +37,9 @@ program
* Uses the FYI format validated by vibe testing — never triggers injection defenses.
*/
const UPDATE_HINT_COMMANDS = new Set(['component', 'docs', 'doctor']);
-program.hook('postAction', (thisCommand) => {
+program.hook('postAction', (thisCommand, actionCommand) => {
try {
- if (UPDATE_HINT_COMMANDS.has(thisCommand.name())) {
+ if (UPDATE_HINT_COMMANDS.has(actionCommand.name())) {
const hint = checkForUpdate();
if (hint) {
console.error(`\n${hint}`);