@mailmodo/cli 0.0.57 → 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.
@@ -137,13 +137,15 @@
137
137
  "index.js"
138
138
  ]
139
139
  },
140
- "deployments": {
140
+ "deploy": {
141
141
  "aliases": [],
142
142
  "args": {},
143
- "description": "List every deployed sequence on this account, with the IDs needed for deploy --pause / --resume",
143
+ "description": "Deploy, pause, or resume an email sequence",
144
144
  "examples": [
145
- "<%= config.bin %> deployments",
146
- "<%= config.bin %> deployments --json"
145
+ "<%= config.bin %> deploy",
146
+ "<%= config.bin %> deploy --yes",
147
+ "<%= config.bin %> deploy --pause seq_abc123",
148
+ "<%= config.bin %> deploy --resume seq_abc123 --json"
147
149
  ],
148
150
  "flags": {
149
151
  "json": {
@@ -158,11 +160,31 @@
158
160
  "name": "yes",
159
161
  "allowNo": false,
160
162
  "type": "boolean"
163
+ },
164
+ "pause": {
165
+ "description": "Pause a deployed sequence by ID (stops scheduled + triggered sends)",
166
+ "exclusive": [
167
+ "resume"
168
+ ],
169
+ "name": "pause",
170
+ "hasDynamicHelp": false,
171
+ "multiple": false,
172
+ "type": "option"
173
+ },
174
+ "resume": {
175
+ "description": "Resume a paused sequence by ID",
176
+ "exclusive": [
177
+ "pause"
178
+ ],
179
+ "name": "resume",
180
+ "hasDynamicHelp": false,
181
+ "multiple": false,
182
+ "type": "option"
161
183
  }
162
184
  },
163
185
  "hasDynamicHelp": false,
164
186
  "hiddenAliases": [],
165
- "id": "deployments",
187
+ "id": "deploy",
166
188
  "pluginAlias": "@mailmodo/cli",
167
189
  "pluginName": "@mailmodo/cli",
168
190
  "pluginType": "core",
@@ -172,19 +194,17 @@
172
194
  "relativePath": [
173
195
  "dist",
174
196
  "commands",
175
- "deployments",
197
+ "deploy",
176
198
  "index.js"
177
199
  ]
178
200
  },
179
- "deploy": {
201
+ "deployments": {
180
202
  "aliases": [],
181
203
  "args": {},
182
- "description": "Deploy, pause, or resume an email sequence",
204
+ "description": "List every deployed sequence on this account, with the IDs needed for deploy --pause / --resume",
183
205
  "examples": [
184
- "<%= config.bin %> deploy",
185
- "<%= config.bin %> deploy --yes",
186
- "<%= config.bin %> deploy --pause seq_abc123",
187
- "<%= config.bin %> deploy --resume seq_abc123 --json"
206
+ "<%= config.bin %> deployments",
207
+ "<%= config.bin %> deployments --json"
188
208
  ],
189
209
  "flags": {
190
210
  "json": {
@@ -199,31 +219,11 @@
199
219
  "name": "yes",
200
220
  "allowNo": false,
201
221
  "type": "boolean"
202
- },
203
- "pause": {
204
- "description": "Pause a deployed sequence by ID (stops scheduled + triggered sends)",
205
- "exclusive": [
206
- "resume"
207
- ],
208
- "name": "pause",
209
- "hasDynamicHelp": false,
210
- "multiple": false,
211
- "type": "option"
212
- },
213
- "resume": {
214
- "description": "Resume a paused sequence by ID",
215
- "exclusive": [
216
- "pause"
217
- ],
218
- "name": "resume",
219
- "hasDynamicHelp": false,
220
- "multiple": false,
221
- "type": "option"
222
222
  }
223
223
  },
224
224
  "hasDynamicHelp": false,
225
225
  "hiddenAliases": [],
226
- "id": "deploy",
226
+ "id": "deployments",
227
227
  "pluginAlias": "@mailmodo/cli",
228
228
  "pluginName": "@mailmodo/cli",
229
229
  "pluginType": "core",
@@ -233,7 +233,7 @@
233
233
  "relativePath": [
234
234
  "dist",
235
235
  "commands",
236
- "deploy",
236
+ "deployments",
237
237
  "index.js"
238
238
  ]
239
239
  },
@@ -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"
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",
4
+ "version": "0.0.58-beta.pr60.110",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"