@mailmodo/cli 0.0.16 → 0.0.17

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.
@@ -110,8 +110,7 @@ export default class Init extends BaseCommand {
110
110
  json: flags.json,
111
111
  text: ' Generating email templates...',
112
112
  }, () => this.apiClient.post(API_ENDPOINTS.GENERATE, {
113
- analysis: analysisPayload,
114
- productUrl,
113
+ ...analysisPayload,
115
114
  }));
116
115
  if (!generateResponse.ok) {
117
116
  this.handleApiError(generateResponse);
@@ -13,7 +13,7 @@ export declare const API_ENDPOINTS: Readonly<{
13
13
  DOMAIN_VERIFY: "/domain/verify";
14
14
  EDIT: "/edit";
15
15
  EVENTS: "/events";
16
- GENERATE: "/generate";
16
+ GENERATE: "/email/generate";
17
17
  LOGS: "/logs";
18
18
  PREVIEW: "/preview";
19
19
  SEQUENCES: "/sequences";
@@ -19,7 +19,7 @@ export const API_ENDPOINTS = Object.freeze({
19
19
  DOMAIN_VERIFY: '/domain/verify',
20
20
  EDIT: '/edit',
21
21
  EVENTS: '/events',
22
- GENERATE: '/generate',
22
+ GENERATE: '/email/generate',
23
23
  LOGS: '/logs',
24
24
  PREVIEW: '/preview',
25
25
  SEQUENCES: '/sequences',
@@ -419,19 +419,15 @@
419
419
  "index.js"
420
420
  ]
421
421
  },
422
- "preview": {
422
+ "logs": {
423
423
  "aliases": [],
424
- "args": {
425
- "id": {
426
- "description": "Email ID to preview",
427
- "name": "id"
428
- }
429
- },
430
- "description": "Preview an email in browser, as text, or send a test",
424
+ "args": {},
425
+ "description": "View email send logs and delivery events",
431
426
  "examples": [
432
- "<%= config.bin %> preview welcome",
433
- "<%= config.bin %> preview welcome --text",
434
- "<%= config.bin %> preview welcome --send me@example.com"
427
+ "<%= config.bin %> logs",
428
+ "<%= config.bin %> logs --email sarah@example.com",
429
+ "<%= config.bin %> logs --failed",
430
+ "<%= config.bin %> logs --json"
435
431
  ],
436
432
  "flags": {
437
433
  "json": {
@@ -447,23 +443,23 @@
447
443
  "allowNo": false,
448
444
  "type": "boolean"
449
445
  },
450
- "send": {
451
- "description": "Send test email to this address",
452
- "name": "send",
446
+ "email": {
447
+ "description": "Filter logs by contact email",
448
+ "name": "email",
453
449
  "hasDynamicHelp": false,
454
450
  "multiple": false,
455
451
  "type": "option"
456
452
  },
457
- "text": {
458
- "description": "Output plain text version (for AI agents)",
459
- "name": "text",
453
+ "failed": {
454
+ "description": "Show only failed/bounced events",
455
+ "name": "failed",
460
456
  "allowNo": false,
461
457
  "type": "boolean"
462
458
  }
463
459
  },
464
460
  "hasDynamicHelp": false,
465
461
  "hiddenAliases": [],
466
- "id": "preview",
462
+ "id": "logs",
467
463
  "pluginAlias": "@mailmodo/cli",
468
464
  "pluginName": "@mailmodo/cli",
469
465
  "pluginType": "core",
@@ -473,19 +469,23 @@
473
469
  "relativePath": [
474
470
  "dist",
475
471
  "commands",
476
- "preview",
472
+ "logs",
477
473
  "index.js"
478
474
  ]
479
475
  },
480
- "logs": {
476
+ "preview": {
481
477
  "aliases": [],
482
- "args": {},
483
- "description": "View email send logs and delivery events",
478
+ "args": {
479
+ "id": {
480
+ "description": "Email ID to preview",
481
+ "name": "id"
482
+ }
483
+ },
484
+ "description": "Preview an email in browser, as text, or send a test",
484
485
  "examples": [
485
- "<%= config.bin %> logs",
486
- "<%= config.bin %> logs --email sarah@example.com",
487
- "<%= config.bin %> logs --failed",
488
- "<%= config.bin %> logs --json"
486
+ "<%= config.bin %> preview welcome",
487
+ "<%= config.bin %> preview welcome --text",
488
+ "<%= config.bin %> preview welcome --send me@example.com"
489
489
  ],
490
490
  "flags": {
491
491
  "json": {
@@ -501,23 +501,23 @@
501
501
  "allowNo": false,
502
502
  "type": "boolean"
503
503
  },
504
- "email": {
505
- "description": "Filter logs by contact email",
506
- "name": "email",
504
+ "send": {
505
+ "description": "Send test email to this address",
506
+ "name": "send",
507
507
  "hasDynamicHelp": false,
508
508
  "multiple": false,
509
509
  "type": "option"
510
510
  },
511
- "failed": {
512
- "description": "Show only failed/bounced events",
513
- "name": "failed",
511
+ "text": {
512
+ "description": "Output plain text version (for AI agents)",
513
+ "name": "text",
514
514
  "allowNo": false,
515
515
  "type": "boolean"
516
516
  }
517
517
  },
518
518
  "hasDynamicHelp": false,
519
519
  "hiddenAliases": [],
520
- "id": "logs",
520
+ "id": "preview",
521
521
  "pluginAlias": "@mailmodo/cli",
522
522
  "pluginName": "@mailmodo/cli",
523
523
  "pluginType": "core",
@@ -527,7 +527,7 @@
527
527
  "relativePath": [
528
528
  "dist",
529
529
  "commands",
530
- "logs",
530
+ "preview",
531
531
  "index.js"
532
532
  ]
533
533
  },
@@ -618,5 +618,5 @@
618
618
  ]
619
619
  }
620
620
  },
621
- "version": "0.0.16"
621
+ "version": "0.0.17"
622
622
  }
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.16",
4
+ "version": "0.0.17",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"