@mailmodo/cli 0.0.40-beta.pr42.66 → 0.0.40

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.
@@ -1,7 +1,7 @@
1
1
  import { BaseCommand } from '../../lib/base-command.js';
2
2
  export default class Login extends BaseCommand {
3
3
  static description: string;
4
- static get examples(): string[];
4
+ static examples: string[];
5
5
  static flags: {
6
6
  json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
7
7
  yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
@@ -8,19 +8,10 @@ import { API_ENDPOINTS, LOGIN_URL } from '../../lib/constants.js';
8
8
  import { INFO } from '../../lib/messages.js';
9
9
  export default class Login extends BaseCommand {
10
10
  static description = 'Authenticate with Mailmodo using your API key';
11
- static get examples() {
12
- if (process.platform === 'win32') {
13
- return [
14
- '<%= config.bin %> login',
15
- '$env:MAILMODO_API_KEY="YOUR_API_KEY"; <%= config.bin %> login # PowerShell',
16
- 'set MAILMODO_API_KEY=YOUR_API_KEY && <%= config.bin %> login # CMD',
17
- ];
18
- }
19
- return [
20
- '<%= config.bin %> login',
21
- 'MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login',
22
- ];
23
- }
11
+ static examples = [
12
+ '<%= config.bin %> login',
13
+ 'MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login',
14
+ ];
24
15
  static flags = {
25
16
  ...BaseCommand.baseFlags,
26
17
  };
@@ -280,52 +280,6 @@
280
280
  "index.js"
281
281
  ]
282
282
  },
283
- "init": {
284
- "aliases": [],
285
- "args": {},
286
- "description": "Analyze your product and generate email sequences",
287
- "examples": [
288
- "<%= config.bin %> init",
289
- "<%= config.bin %> init --url https://myapp.com --yes"
290
- ],
291
- "flags": {
292
- "json": {
293
- "description": "Output as JSON",
294
- "name": "json",
295
- "allowNo": false,
296
- "type": "boolean"
297
- },
298
- "yes": {
299
- "char": "y",
300
- "description": "Skip confirmation prompts",
301
- "name": "yes",
302
- "allowNo": false,
303
- "type": "boolean"
304
- },
305
- "url": {
306
- "description": "Product URL to analyze",
307
- "name": "url",
308
- "hasDynamicHelp": false,
309
- "multiple": false,
310
- "type": "option"
311
- }
312
- },
313
- "hasDynamicHelp": false,
314
- "hiddenAliases": [],
315
- "id": "init",
316
- "pluginAlias": "@mailmodo/cli",
317
- "pluginName": "@mailmodo/cli",
318
- "pluginType": "core",
319
- "strict": true,
320
- "enableJsonFlag": false,
321
- "isESM": true,
322
- "relativePath": [
323
- "dist",
324
- "commands",
325
- "init",
326
- "index.js"
327
- ]
328
- },
329
283
  "emails": {
330
284
  "aliases": [],
331
285
  "args": {},
@@ -365,10 +319,14 @@
365
319
  "index.js"
366
320
  ]
367
321
  },
368
- "login": {
322
+ "init": {
369
323
  "aliases": [],
370
324
  "args": {},
371
- "description": "Authenticate with Mailmodo using your API key",
325
+ "description": "Analyze your product and generate email sequences",
326
+ "examples": [
327
+ "<%= config.bin %> init",
328
+ "<%= config.bin %> init --url https://myapp.com --yes"
329
+ ],
372
330
  "flags": {
373
331
  "json": {
374
332
  "description": "Output as JSON",
@@ -382,11 +340,18 @@
382
340
  "name": "yes",
383
341
  "allowNo": false,
384
342
  "type": "boolean"
343
+ },
344
+ "url": {
345
+ "description": "Product URL to analyze",
346
+ "name": "url",
347
+ "hasDynamicHelp": false,
348
+ "multiple": false,
349
+ "type": "option"
385
350
  }
386
351
  },
387
352
  "hasDynamicHelp": false,
388
353
  "hiddenAliases": [],
389
- "id": "login",
354
+ "id": "init",
390
355
  "pluginAlias": "@mailmodo/cli",
391
356
  "pluginName": "@mailmodo/cli",
392
357
  "pluginType": "core",
@@ -396,16 +361,17 @@
396
361
  "relativePath": [
397
362
  "dist",
398
363
  "commands",
399
- "login",
364
+ "init",
400
365
  "index.js"
401
366
  ]
402
367
  },
403
- "logout": {
368
+ "login": {
404
369
  "aliases": [],
405
370
  "args": {},
406
- "description": "Sign out by removing saved credentials from this machine",
371
+ "description": "Authenticate with Mailmodo using your API key",
407
372
  "examples": [
408
- "<%= config.bin %> logout"
373
+ "<%= config.bin %> login",
374
+ "MAILMODO_API_KEY=mm_live_xxx <%= config.bin %> login"
409
375
  ],
410
376
  "flags": {
411
377
  "json": {
@@ -424,7 +390,7 @@
424
390
  },
425
391
  "hasDynamicHelp": false,
426
392
  "hiddenAliases": [],
427
- "id": "logout",
393
+ "id": "login",
428
394
  "pluginAlias": "@mailmodo/cli",
429
395
  "pluginName": "@mailmodo/cli",
430
396
  "pluginType": "core",
@@ -434,7 +400,7 @@
434
400
  "relativePath": [
435
401
  "dist",
436
402
  "commands",
437
- "logout",
403
+ "login",
438
404
  "index.js"
439
405
  ]
440
406
  },
@@ -508,6 +474,44 @@
508
474
  "index.js"
509
475
  ]
510
476
  },
477
+ "logout": {
478
+ "aliases": [],
479
+ "args": {},
480
+ "description": "Sign out by removing saved credentials from this machine",
481
+ "examples": [
482
+ "<%= config.bin %> logout"
483
+ ],
484
+ "flags": {
485
+ "json": {
486
+ "description": "Output as JSON",
487
+ "name": "json",
488
+ "allowNo": false,
489
+ "type": "boolean"
490
+ },
491
+ "yes": {
492
+ "char": "y",
493
+ "description": "Skip confirmation prompts",
494
+ "name": "yes",
495
+ "allowNo": false,
496
+ "type": "boolean"
497
+ }
498
+ },
499
+ "hasDynamicHelp": false,
500
+ "hiddenAliases": [],
501
+ "id": "logout",
502
+ "pluginAlias": "@mailmodo/cli",
503
+ "pluginName": "@mailmodo/cli",
504
+ "pluginType": "core",
505
+ "strict": true,
506
+ "enableJsonFlag": false,
507
+ "isESM": true,
508
+ "relativePath": [
509
+ "dist",
510
+ "commands",
511
+ "logout",
512
+ "index.js"
513
+ ]
514
+ },
511
515
  "preview": {
512
516
  "aliases": [],
513
517
  "args": {
@@ -653,5 +657,5 @@
653
657
  ]
654
658
  }
655
659
  },
656
- "version": "0.0.40-beta.pr42.66"
660
+ "version": "0.0.40"
657
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.40-beta.pr42.66",
4
+ "version": "0.0.40",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"