@mailmodo/cli 0.0.57-beta.pr59.109 → 0.0.58-beta.pr60.110

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.
@@ -39,9 +39,11 @@ export async function loadConfig() {
39
39
  export async function saveConfig(config) {
40
40
  const dir = configDir();
41
41
  if (!existsSync(dir)) {
42
- await mkdir(dir, { recursive: true });
42
+ await mkdir(dir, { recursive: true, mode: 0o700 });
43
43
  }
44
- await writeFile(configFile(), JSON.stringify(config, null, 2));
44
+ await writeFile(configFile(), JSON.stringify(config, null, 2), {
45
+ mode: 0o600,
46
+ });
45
47
  }
46
48
  /**
47
49
  * Deletes the saved CLI config file (~/.mailmodo/config), removing the stored API key.
@@ -341,13 +341,13 @@
341
341
  "index.js"
342
342
  ]
343
343
  },
344
- "emails": {
344
+ "init": {
345
345
  "aliases": [],
346
346
  "args": {},
347
- "description": "List and view configured email sequences",
347
+ "description": "Analyze your product and generate email sequences",
348
348
  "examples": [
349
- "<%= config.bin %> emails",
350
- "<%= config.bin %> emails --json"
349
+ "<%= config.bin %> init",
350
+ "<%= config.bin %> init --url https://myapp.com --yes"
351
351
  ],
352
352
  "flags": {
353
353
  "json": {
@@ -362,11 +362,18 @@
362
362
  "name": "yes",
363
363
  "allowNo": false,
364
364
  "type": "boolean"
365
+ },
366
+ "url": {
367
+ "description": "Product URL to analyze",
368
+ "name": "url",
369
+ "hasDynamicHelp": false,
370
+ "multiple": false,
371
+ "type": "option"
365
372
  }
366
373
  },
367
374
  "hasDynamicHelp": false,
368
375
  "hiddenAliases": [],
369
- "id": "emails",
376
+ "id": "init",
370
377
  "pluginAlias": "@mailmodo/cli",
371
378
  "pluginName": "@mailmodo/cli",
372
379
  "pluginType": "core",
@@ -376,17 +383,17 @@
376
383
  "relativePath": [
377
384
  "dist",
378
385
  "commands",
379
- "emails",
386
+ "init",
380
387
  "index.js"
381
388
  ]
382
389
  },
383
- "init": {
390
+ "login": {
384
391
  "aliases": [],
385
392
  "args": {},
386
- "description": "Analyze your product and generate email sequences",
393
+ "description": "Authenticate with Mailmodo using your API key",
387
394
  "examples": [
388
- "<%= config.bin %> init",
389
- "<%= config.bin %> init --url https://myapp.com --yes"
395
+ "<%= config.bin %> login",
396
+ "MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
390
397
  ],
391
398
  "flags": {
392
399
  "json": {
@@ -401,18 +408,11 @@
401
408
  "name": "yes",
402
409
  "allowNo": false,
403
410
  "type": "boolean"
404
- },
405
- "url": {
406
- "description": "Product URL to analyze",
407
- "name": "url",
408
- "hasDynamicHelp": false,
409
- "multiple": false,
410
- "type": "option"
411
411
  }
412
412
  },
413
413
  "hasDynamicHelp": false,
414
414
  "hiddenAliases": [],
415
- "id": "init",
415
+ "id": "login",
416
416
  "pluginAlias": "@mailmodo/cli",
417
417
  "pluginName": "@mailmodo/cli",
418
418
  "pluginType": "core",
@@ -422,17 +422,16 @@
422
422
  "relativePath": [
423
423
  "dist",
424
424
  "commands",
425
- "init",
425
+ "login",
426
426
  "index.js"
427
427
  ]
428
428
  },
429
- "login": {
429
+ "logout": {
430
430
  "aliases": [],
431
431
  "args": {},
432
- "description": "Authenticate with Mailmodo using your API key",
432
+ "description": "Sign out by removing saved credentials from this machine",
433
433
  "examples": [
434
- "<%= config.bin %> login",
435
- "MAILMODO_API_KEY=YOUR_API_KEY <%= config.bin %> login"
434
+ "<%= config.bin %> logout"
436
435
  ],
437
436
  "flags": {
438
437
  "json": {
@@ -451,7 +450,7 @@
451
450
  },
452
451
  "hasDynamicHelp": false,
453
452
  "hiddenAliases": [],
454
- "id": "login",
453
+ "id": "logout",
455
454
  "pluginAlias": "@mailmodo/cli",
456
455
  "pluginName": "@mailmodo/cli",
457
456
  "pluginType": "core",
@@ -461,16 +460,17 @@
461
460
  "relativePath": [
462
461
  "dist",
463
462
  "commands",
464
- "login",
463
+ "logout",
465
464
  "index.js"
466
465
  ]
467
466
  },
468
- "logout": {
467
+ "emails": {
469
468
  "aliases": [],
470
469
  "args": {},
471
- "description": "Sign out by removing saved credentials from this machine",
470
+ "description": "List and view configured email sequences",
472
471
  "examples": [
473
- "<%= config.bin %> logout"
472
+ "<%= config.bin %> emails",
473
+ "<%= config.bin %> emails --json"
474
474
  ],
475
475
  "flags": {
476
476
  "json": {
@@ -489,7 +489,7 @@
489
489
  },
490
490
  "hasDynamicHelp": false,
491
491
  "hiddenAliases": [],
492
- "id": "logout",
492
+ "id": "emails",
493
493
  "pluginAlias": "@mailmodo/cli",
494
494
  "pluginName": "@mailmodo/cli",
495
495
  "pluginType": "core",
@@ -499,7 +499,7 @@
499
499
  "relativePath": [
500
500
  "dist",
501
501
  "commands",
502
- "logout",
502
+ "emails",
503
503
  "index.js"
504
504
  ]
505
505
  },
@@ -932,5 +932,5 @@
932
932
  ]
933
933
  }
934
934
  },
935
- "version": "0.0.57-beta.pr59.109"
935
+ "version": "0.0.58-beta.pr60.110"
936
936
  }
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.57-beta.pr59.109",
4
+ "version": "0.0.58-beta.pr60.110",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"