@mailmodo/cli 0.0.36-beta.pr38.61 → 0.0.37-beta.pr39.62

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.
@@ -67,21 +67,30 @@ export default class Login extends BaseCommand {
67
67
  if (!response.ok) {
68
68
  this.handleApiError(response);
69
69
  }
70
- const { email, totalFreeRemaining } = response.data;
70
+ const { email, totalFreeRemaining, paidEmailsRemaining, plan } = response.data;
71
71
  await saveConfig({
72
72
  apiKey: trimmedKey,
73
73
  email,
74
74
  totalFreeRemaining,
75
75
  });
76
76
  if (flags.json) {
77
- this.log(JSON.stringify({ email, status: 'authenticated', totalFreeRemaining }, null, 2));
77
+ this.log(JSON.stringify({
78
+ email,
79
+ plan,
80
+ totalFreeRemaining,
81
+ paidEmailsRemaining,
82
+ status: 'authenticated',
83
+ }, null, 2));
78
84
  return;
79
85
  }
80
86
  this.log(`\n Logged in as ${chalk.green(email)}`);
81
- if (totalFreeRemaining !== null && totalFreeRemaining !== undefined) {
87
+ if (plan === 'free') {
82
88
  this.log(` Free tier: ${chalk.cyan(String(totalFreeRemaining))} emails remaining`);
89
+ this.log(' No credit card required.\n');
90
+ }
91
+ if (plan === 'paid') {
92
+ this.log(` Current paid block: ${chalk.cyan(String(paidEmailsRemaining))} emails remaining\n`);
83
93
  }
84
- this.log(' No credit card required.\n');
85
94
  this.log(` Next: Run ${chalk.cyan("'mailmodo init'")} to generate your email sequences.\n`);
86
95
  }
87
96
  }
@@ -657,5 +657,5 @@
657
657
  ]
658
658
  }
659
659
  },
660
- "version": "0.0.36-beta.pr38.61"
660
+ "version": "0.0.37-beta.pr39.62"
661
661
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mailmodo/cli",
3
3
  "description": "Email lifecycle automation for the AI-native builder generation.",
4
- "version": "0.0.36-beta.pr38.61",
4
+ "version": "0.0.37-beta.pr39.62",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"