@mailmodo/cli 0.0.37 → 0.0.38-beta.pr40.63

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
  }
@@ -69,7 +69,7 @@ export class BaseCommand extends Command {
69
69
  const result = await work().finally(() => spinner.stop());
70
70
  const warning = result.addCardWarning;
71
71
  if (typeof warning === 'string' && warning) {
72
- this.warn(warning);
72
+ this.warn(chalk.hex('#FFA500')(warning));
73
73
  }
74
74
  return result;
75
75
  }
@@ -137,14 +137,13 @@
137
137
  "index.js"
138
138
  ]
139
139
  },
140
- "domain": {
140
+ "deploy": {
141
141
  "aliases": [],
142
142
  "args": {},
143
- "description": "Set up and verify your sending domain",
143
+ "description": "Deploy email sequences and verify sending domain",
144
144
  "examples": [
145
- "<%= config.bin %> domain",
146
- "<%= config.bin %> domain --verify",
147
- "<%= config.bin %> domain --status"
145
+ "<%= config.bin %> deploy",
146
+ "<%= config.bin %> deploy --yes"
148
147
  ],
149
148
  "flags": {
150
149
  "json": {
@@ -159,23 +158,11 @@
159
158
  "name": "yes",
160
159
  "allowNo": false,
161
160
  "type": "boolean"
162
- },
163
- "status": {
164
- "description": "Show domain health status",
165
- "name": "status",
166
- "allowNo": false,
167
- "type": "boolean"
168
- },
169
- "verify": {
170
- "description": "Verify DNS records",
171
- "name": "verify",
172
- "allowNo": false,
173
- "type": "boolean"
174
161
  }
175
162
  },
176
163
  "hasDynamicHelp": false,
177
164
  "hiddenAliases": [],
178
- "id": "domain",
165
+ "id": "deploy",
179
166
  "pluginAlias": "@mailmodo/cli",
180
167
  "pluginName": "@mailmodo/cli",
181
168
  "pluginType": "core",
@@ -185,17 +172,18 @@
185
172
  "relativePath": [
186
173
  "dist",
187
174
  "commands",
188
- "domain",
175
+ "deploy",
189
176
  "index.js"
190
177
  ]
191
178
  },
192
- "deploy": {
179
+ "domain": {
193
180
  "aliases": [],
194
181
  "args": {},
195
- "description": "Deploy email sequences and verify sending domain",
182
+ "description": "Set up and verify your sending domain",
196
183
  "examples": [
197
- "<%= config.bin %> deploy",
198
- "<%= config.bin %> deploy --yes"
184
+ "<%= config.bin %> domain",
185
+ "<%= config.bin %> domain --verify",
186
+ "<%= config.bin %> domain --status"
199
187
  ],
200
188
  "flags": {
201
189
  "json": {
@@ -210,11 +198,23 @@
210
198
  "name": "yes",
211
199
  "allowNo": false,
212
200
  "type": "boolean"
201
+ },
202
+ "status": {
203
+ "description": "Show domain health status",
204
+ "name": "status",
205
+ "allowNo": false,
206
+ "type": "boolean"
207
+ },
208
+ "verify": {
209
+ "description": "Verify DNS records",
210
+ "name": "verify",
211
+ "allowNo": false,
212
+ "type": "boolean"
213
213
  }
214
214
  },
215
215
  "hasDynamicHelp": false,
216
216
  "hiddenAliases": [],
217
- "id": "deploy",
217
+ "id": "domain",
218
218
  "pluginAlias": "@mailmodo/cli",
219
219
  "pluginName": "@mailmodo/cli",
220
220
  "pluginType": "core",
@@ -224,17 +224,23 @@
224
224
  "relativePath": [
225
225
  "dist",
226
226
  "commands",
227
- "deploy",
227
+ "domain",
228
228
  "index.js"
229
229
  ]
230
230
  },
231
- "emails": {
231
+ "edit": {
232
232
  "aliases": [],
233
- "args": {},
234
- "description": "List and view configured email sequences",
233
+ "args": {
234
+ "id": {
235
+ "description": "Email template ID to edit",
236
+ "name": "id",
237
+ "required": true
238
+ }
239
+ },
240
+ "description": "Edit an email using AI-assisted natural language changes",
235
241
  "examples": [
236
- "<%= config.bin %> emails",
237
- "<%= config.bin %> emails --json"
242
+ "<%= config.bin %> edit welcome",
243
+ "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
238
244
  ],
239
245
  "flags": {
240
246
  "json": {
@@ -249,11 +255,18 @@
249
255
  "name": "yes",
250
256
  "allowNo": false,
251
257
  "type": "boolean"
258
+ },
259
+ "change": {
260
+ "description": "Natural language description of the change",
261
+ "name": "change",
262
+ "hasDynamicHelp": false,
263
+ "multiple": false,
264
+ "type": "option"
252
265
  }
253
266
  },
254
267
  "hasDynamicHelp": false,
255
268
  "hiddenAliases": [],
256
- "id": "emails",
269
+ "id": "edit",
257
270
  "pluginAlias": "@mailmodo/cli",
258
271
  "pluginName": "@mailmodo/cli",
259
272
  "pluginType": "core",
@@ -263,23 +276,17 @@
263
276
  "relativePath": [
264
277
  "dist",
265
278
  "commands",
266
- "emails",
279
+ "edit",
267
280
  "index.js"
268
281
  ]
269
282
  },
270
- "edit": {
283
+ "emails": {
271
284
  "aliases": [],
272
- "args": {
273
- "id": {
274
- "description": "Email template ID to edit",
275
- "name": "id",
276
- "required": true
277
- }
278
- },
279
- "description": "Edit an email using AI-assisted natural language changes",
285
+ "args": {},
286
+ "description": "List and view configured email sequences",
280
287
  "examples": [
281
- "<%= config.bin %> edit welcome",
282
- "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
288
+ "<%= config.bin %> emails",
289
+ "<%= config.bin %> emails --json"
283
290
  ],
284
291
  "flags": {
285
292
  "json": {
@@ -294,18 +301,11 @@
294
301
  "name": "yes",
295
302
  "allowNo": false,
296
303
  "type": "boolean"
297
- },
298
- "change": {
299
- "description": "Natural language description of the change",
300
- "name": "change",
301
- "hasDynamicHelp": false,
302
- "multiple": false,
303
- "type": "option"
304
304
  }
305
305
  },
306
306
  "hasDynamicHelp": false,
307
307
  "hiddenAliases": [],
308
- "id": "edit",
308
+ "id": "emails",
309
309
  "pluginAlias": "@mailmodo/cli",
310
310
  "pluginName": "@mailmodo/cli",
311
311
  "pluginType": "core",
@@ -315,7 +315,7 @@
315
315
  "relativePath": [
316
316
  "dist",
317
317
  "commands",
318
- "edit",
318
+ "emails",
319
319
  "index.js"
320
320
  ]
321
321
  },
@@ -570,14 +570,13 @@
570
570
  "index.js"
571
571
  ]
572
572
  },
573
- "settings": {
573
+ "status": {
574
574
  "aliases": [],
575
575
  "args": {},
576
- "description": "View and update project settings",
576
+ "description": "View email performance metrics and quota usage",
577
577
  "examples": [
578
- "<%= config.bin %> settings",
579
- "<%= config.bin %> settings --set brand_color=#0F3460",
580
- "<%= config.bin %> settings --json"
578
+ "<%= config.bin %> status",
579
+ "<%= config.bin %> status --json"
581
580
  ],
582
581
  "flags": {
583
582
  "json": {
@@ -592,18 +591,11 @@
592
591
  "name": "yes",
593
592
  "allowNo": false,
594
593
  "type": "boolean"
595
- },
596
- "set": {
597
- "description": "Set a setting (format: key=value)",
598
- "name": "set",
599
- "hasDynamicHelp": false,
600
- "multiple": false,
601
- "type": "option"
602
594
  }
603
595
  },
604
596
  "hasDynamicHelp": false,
605
597
  "hiddenAliases": [],
606
- "id": "settings",
598
+ "id": "status",
607
599
  "pluginAlias": "@mailmodo/cli",
608
600
  "pluginName": "@mailmodo/cli",
609
601
  "pluginType": "core",
@@ -613,17 +605,18 @@
613
605
  "relativePath": [
614
606
  "dist",
615
607
  "commands",
616
- "settings",
608
+ "status",
617
609
  "index.js"
618
610
  ]
619
611
  },
620
- "status": {
612
+ "settings": {
621
613
  "aliases": [],
622
614
  "args": {},
623
- "description": "View email performance metrics and quota usage",
615
+ "description": "View and update project settings",
624
616
  "examples": [
625
- "<%= config.bin %> status",
626
- "<%= config.bin %> status --json"
617
+ "<%= config.bin %> settings",
618
+ "<%= config.bin %> settings --set brand_color=#0F3460",
619
+ "<%= config.bin %> settings --json"
627
620
  ],
628
621
  "flags": {
629
622
  "json": {
@@ -638,11 +631,18 @@
638
631
  "name": "yes",
639
632
  "allowNo": false,
640
633
  "type": "boolean"
634
+ },
635
+ "set": {
636
+ "description": "Set a setting (format: key=value)",
637
+ "name": "set",
638
+ "hasDynamicHelp": false,
639
+ "multiple": false,
640
+ "type": "option"
641
641
  }
642
642
  },
643
643
  "hasDynamicHelp": false,
644
644
  "hiddenAliases": [],
645
- "id": "status",
645
+ "id": "settings",
646
646
  "pluginAlias": "@mailmodo/cli",
647
647
  "pluginName": "@mailmodo/cli",
648
648
  "pluginType": "core",
@@ -652,10 +652,10 @@
652
652
  "relativePath": [
653
653
  "dist",
654
654
  "commands",
655
- "status",
655
+ "settings",
656
656
  "index.js"
657
657
  ]
658
658
  }
659
659
  },
660
- "version": "0.0.37"
660
+ "version": "0.0.38-beta.pr40.63"
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.37",
4
+ "version": "0.0.38-beta.pr40.63",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"