@mailmodo/cli 0.0.37-beta.pr39.62 → 0.0.37

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,30 +67,21 @@ export default class Login extends BaseCommand {
67
67
  if (!response.ok) {
68
68
  this.handleApiError(response);
69
69
  }
70
- const { email, totalFreeRemaining, paidEmailsRemaining, plan } = response.data;
70
+ const { email, totalFreeRemaining } = 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({
78
- email,
79
- plan,
80
- totalFreeRemaining,
81
- paidEmailsRemaining,
82
- status: 'authenticated',
83
- }, null, 2));
77
+ this.log(JSON.stringify({ email, status: 'authenticated', totalFreeRemaining }, null, 2));
84
78
  return;
85
79
  }
86
80
  this.log(`\n Logged in as ${chalk.green(email)}`);
87
- if (plan === 'free') {
81
+ if (totalFreeRemaining !== null && totalFreeRemaining !== undefined) {
88
82
  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`);
93
83
  }
84
+ this.log(' No credit card required.\n');
94
85
  this.log(` Next: Run ${chalk.cyan("'mailmodo init'")} to generate your email sequences.\n`);
95
86
  }
96
87
  }
@@ -137,13 +137,14 @@
137
137
  "index.js"
138
138
  ]
139
139
  },
140
- "deploy": {
140
+ "domain": {
141
141
  "aliases": [],
142
142
  "args": {},
143
- "description": "Deploy email sequences and verify sending domain",
143
+ "description": "Set up and verify your sending domain",
144
144
  "examples": [
145
- "<%= config.bin %> deploy",
146
- "<%= config.bin %> deploy --yes"
145
+ "<%= config.bin %> domain",
146
+ "<%= config.bin %> domain --verify",
147
+ "<%= config.bin %> domain --status"
147
148
  ],
148
149
  "flags": {
149
150
  "json": {
@@ -158,11 +159,23 @@
158
159
  "name": "yes",
159
160
  "allowNo": false,
160
161
  "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"
161
174
  }
162
175
  },
163
176
  "hasDynamicHelp": false,
164
177
  "hiddenAliases": [],
165
- "id": "deploy",
178
+ "id": "domain",
166
179
  "pluginAlias": "@mailmodo/cli",
167
180
  "pluginName": "@mailmodo/cli",
168
181
  "pluginType": "core",
@@ -172,18 +185,17 @@
172
185
  "relativePath": [
173
186
  "dist",
174
187
  "commands",
175
- "deploy",
188
+ "domain",
176
189
  "index.js"
177
190
  ]
178
191
  },
179
- "domain": {
192
+ "deploy": {
180
193
  "aliases": [],
181
194
  "args": {},
182
- "description": "Set up and verify your sending domain",
195
+ "description": "Deploy email sequences and verify sending domain",
183
196
  "examples": [
184
- "<%= config.bin %> domain",
185
- "<%= config.bin %> domain --verify",
186
- "<%= config.bin %> domain --status"
197
+ "<%= config.bin %> deploy",
198
+ "<%= config.bin %> deploy --yes"
187
199
  ],
188
200
  "flags": {
189
201
  "json": {
@@ -198,23 +210,11 @@
198
210
  "name": "yes",
199
211
  "allowNo": false,
200
212
  "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": "domain",
217
+ "id": "deploy",
218
218
  "pluginAlias": "@mailmodo/cli",
219
219
  "pluginName": "@mailmodo/cli",
220
220
  "pluginType": "core",
@@ -224,23 +224,17 @@
224
224
  "relativePath": [
225
225
  "dist",
226
226
  "commands",
227
- "domain",
227
+ "deploy",
228
228
  "index.js"
229
229
  ]
230
230
  },
231
- "edit": {
231
+ "emails": {
232
232
  "aliases": [],
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",
233
+ "args": {},
234
+ "description": "List and view configured email sequences",
241
235
  "examples": [
242
- "<%= config.bin %> edit welcome",
243
- "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
236
+ "<%= config.bin %> emails",
237
+ "<%= config.bin %> emails --json"
244
238
  ],
245
239
  "flags": {
246
240
  "json": {
@@ -255,18 +249,11 @@
255
249
  "name": "yes",
256
250
  "allowNo": false,
257
251
  "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"
265
252
  }
266
253
  },
267
254
  "hasDynamicHelp": false,
268
255
  "hiddenAliases": [],
269
- "id": "edit",
256
+ "id": "emails",
270
257
  "pluginAlias": "@mailmodo/cli",
271
258
  "pluginName": "@mailmodo/cli",
272
259
  "pluginType": "core",
@@ -276,17 +263,23 @@
276
263
  "relativePath": [
277
264
  "dist",
278
265
  "commands",
279
- "edit",
266
+ "emails",
280
267
  "index.js"
281
268
  ]
282
269
  },
283
- "emails": {
270
+ "edit": {
284
271
  "aliases": [],
285
- "args": {},
286
- "description": "List and view configured email sequences",
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",
287
280
  "examples": [
288
- "<%= config.bin %> emails",
289
- "<%= config.bin %> emails --json"
281
+ "<%= config.bin %> edit welcome",
282
+ "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
290
283
  ],
291
284
  "flags": {
292
285
  "json": {
@@ -301,11 +294,18 @@
301
294
  "name": "yes",
302
295
  "allowNo": false,
303
296
  "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": "emails",
308
+ "id": "edit",
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
- "emails",
318
+ "edit",
319
319
  "index.js"
320
320
  ]
321
321
  },
@@ -657,5 +657,5 @@
657
657
  ]
658
658
  }
659
659
  },
660
- "version": "0.0.37-beta.pr39.62"
660
+ "version": "0.0.37"
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-beta.pr39.62",
4
+ "version": "0.0.37",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"