@mailmodo/cli 0.0.15-beta.pr18.27 → 0.0.15

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,7 +110,8 @@ 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
- ...analysisPayload,
113
+ analysis: analysisPayload,
114
+ productUrl,
114
115
  }));
115
116
  if (!generateResponse.ok) {
116
117
  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: "/email/generate";
16
+ GENERATE: "/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: '/email/generate',
22
+ GENERATE: '/generate',
23
23
  LOGS: '/logs',
24
24
  PREVIEW: '/preview',
25
25
  SEQUENCES: '/sequences',
@@ -257,13 +257,13 @@
257
257
  "index.js"
258
258
  ]
259
259
  },
260
- "emails": {
260
+ "init": {
261
261
  "aliases": [],
262
262
  "args": {},
263
- "description": "List and view configured email sequences",
263
+ "description": "Analyze your product and generate email sequences",
264
264
  "examples": [
265
- "<%= config.bin %> emails",
266
- "<%= config.bin %> emails --json"
265
+ "<%= config.bin %> init",
266
+ "<%= config.bin %> init --url https://myapp.com --yes"
267
267
  ],
268
268
  "flags": {
269
269
  "json": {
@@ -278,11 +278,18 @@
278
278
  "name": "yes",
279
279
  "allowNo": false,
280
280
  "type": "boolean"
281
+ },
282
+ "url": {
283
+ "description": "Product URL to analyze",
284
+ "name": "url",
285
+ "hasDynamicHelp": false,
286
+ "multiple": false,
287
+ "type": "option"
281
288
  }
282
289
  },
283
290
  "hasDynamicHelp": false,
284
291
  "hiddenAliases": [],
285
- "id": "emails",
292
+ "id": "init",
286
293
  "pluginAlias": "@mailmodo/cli",
287
294
  "pluginName": "@mailmodo/cli",
288
295
  "pluginType": "core",
@@ -292,17 +299,17 @@
292
299
  "relativePath": [
293
300
  "dist",
294
301
  "commands",
295
- "emails",
302
+ "init",
296
303
  "index.js"
297
304
  ]
298
305
  },
299
- "init": {
306
+ "emails": {
300
307
  "aliases": [],
301
308
  "args": {},
302
- "description": "Analyze your product and generate email sequences",
309
+ "description": "List and view configured email sequences",
303
310
  "examples": [
304
- "<%= config.bin %> init",
305
- "<%= config.bin %> init --url https://myapp.com --yes"
311
+ "<%= config.bin %> emails",
312
+ "<%= config.bin %> emails --json"
306
313
  ],
307
314
  "flags": {
308
315
  "json": {
@@ -317,18 +324,11 @@
317
324
  "name": "yes",
318
325
  "allowNo": false,
319
326
  "type": "boolean"
320
- },
321
- "url": {
322
- "description": "Product URL to analyze",
323
- "name": "url",
324
- "hasDynamicHelp": false,
325
- "multiple": false,
326
- "type": "option"
327
327
  }
328
328
  },
329
329
  "hasDynamicHelp": false,
330
330
  "hiddenAliases": [],
331
- "id": "init",
331
+ "id": "emails",
332
332
  "pluginAlias": "@mailmodo/cli",
333
333
  "pluginName": "@mailmodo/cli",
334
334
  "pluginType": "core",
@@ -338,7 +338,7 @@
338
338
  "relativePath": [
339
339
  "dist",
340
340
  "commands",
341
- "init",
341
+ "emails",
342
342
  "index.js"
343
343
  ]
344
344
  },
@@ -618,5 +618,5 @@
618
618
  ]
619
619
  }
620
620
  },
621
- "version": "0.0.15-beta.pr18.27"
621
+ "version": "0.0.15"
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.15-beta.pr18.27",
4
+ "version": "0.0.15",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"