pmpt-cli 1.12.3 → 1.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -48,8 +48,9 @@ const require = createRequire(import.meta.url);
48
48
  const { version } = require('../package.json');
49
49
  const program = new Command();
50
50
  // Track every command invocation (fire-and-forget)
51
- program.hook('preAction', (thisCommand) => {
52
- trackCommand(thisCommand.name());
51
+ program.hook('preAction', (thisCommand, actionCommand) => {
52
+ const commandName = actionCommand?.name() || thisCommand.name();
53
+ trackCommand(commandName);
53
54
  });
54
55
  program
55
56
  .name('pmpt')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmpt-cli",
3
- "version": "1.12.3",
3
+ "version": "1.12.4",
4
4
  "description": "Record and share your AI-driven product development journey",
5
5
  "type": "module",
6
6
  "bin": {