@mailmodo/cli 0.0.55-beta.pr57.92 → 0.0.55-beta.pr57.93

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.
@@ -54,7 +54,7 @@ export default class Init extends BaseCommand {
54
54
  return s?.cap?.inBlocks ?? undefined;
55
55
  },
56
56
  log: (msg) => this.log(msg),
57
- logToStderr: (msg) => this.logToStderr(msg),
57
+ logToStderr: (msg) => this.logToStderr(msg ?? ''),
58
58
  onAiQuotaError: (r, feature) => this.handleAiQuotaError(r, feature),
59
59
  onApiError: (r) => this.handleApiError(r),
60
60
  post: (path, body) => this.apiClient.post(path, body),
@@ -41,7 +41,7 @@ export type InitCtx = {
41
41
  get<T>(path: string, params?: Record<string, string>): Promise<ApiResponse<T>>;
42
42
  getBillingCap(): Promise<number | undefined>;
43
43
  log(msg?: string): void;
44
- logToStderr(msg: string): void;
44
+ logToStderr(msg?: string): void;
45
45
  onAiQuotaError(resp: {
46
46
  data?: unknown;
47
47
  error?: string;
@@ -289,13 +289,19 @@
289
289
  "index.js"
290
290
  ]
291
291
  },
292
- "emails": {
292
+ "edit": {
293
293
  "aliases": [],
294
- "args": {},
295
- "description": "List and view configured email sequences",
294
+ "args": {
295
+ "id": {
296
+ "description": "Email template ID to edit",
297
+ "name": "id",
298
+ "required": true
299
+ }
300
+ },
301
+ "description": "Edit an email using AI-assisted natural language changes",
296
302
  "examples": [
297
- "<%= config.bin %> emails",
298
- "<%= config.bin %> emails --json"
303
+ "<%= config.bin %> edit welcome",
304
+ "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
299
305
  ],
300
306
  "flags": {
301
307
  "json": {
@@ -310,11 +316,18 @@
310
316
  "name": "yes",
311
317
  "allowNo": false,
312
318
  "type": "boolean"
319
+ },
320
+ "change": {
321
+ "description": "Natural language description of the change",
322
+ "name": "change",
323
+ "hasDynamicHelp": false,
324
+ "multiple": false,
325
+ "type": "option"
313
326
  }
314
327
  },
315
328
  "hasDynamicHelp": false,
316
329
  "hiddenAliases": [],
317
- "id": "emails",
330
+ "id": "edit",
318
331
  "pluginAlias": "@mailmodo/cli",
319
332
  "pluginName": "@mailmodo/cli",
320
333
  "pluginType": "core",
@@ -324,23 +337,17 @@
324
337
  "relativePath": [
325
338
  "dist",
326
339
  "commands",
327
- "emails",
340
+ "edit",
328
341
  "index.js"
329
342
  ]
330
343
  },
331
- "edit": {
344
+ "emails": {
332
345
  "aliases": [],
333
- "args": {
334
- "id": {
335
- "description": "Email template ID to edit",
336
- "name": "id",
337
- "required": true
338
- }
339
- },
340
- "description": "Edit an email using AI-assisted natural language changes",
346
+ "args": {},
347
+ "description": "List and view configured email sequences",
341
348
  "examples": [
342
- "<%= config.bin %> edit welcome",
343
- "<%= config.bin %> edit welcome --change \"make subject more urgent\" --yes"
349
+ "<%= config.bin %> emails",
350
+ "<%= config.bin %> emails --json"
344
351
  ],
345
352
  "flags": {
346
353
  "json": {
@@ -355,18 +362,11 @@
355
362
  "name": "yes",
356
363
  "allowNo": false,
357
364
  "type": "boolean"
358
- },
359
- "change": {
360
- "description": "Natural language description of the change",
361
- "name": "change",
362
- "hasDynamicHelp": false,
363
- "multiple": false,
364
- "type": "option"
365
365
  }
366
366
  },
367
367
  "hasDynamicHelp": false,
368
368
  "hiddenAliases": [],
369
- "id": "edit",
369
+ "id": "emails",
370
370
  "pluginAlias": "@mailmodo/cli",
371
371
  "pluginName": "@mailmodo/cli",
372
372
  "pluginType": "core",
@@ -376,7 +376,7 @@
376
376
  "relativePath": [
377
377
  "dist",
378
378
  "commands",
379
- "edit",
379
+ "emails",
380
380
  "index.js"
381
381
  ]
382
382
  },
@@ -765,5 +765,5 @@
765
765
  ]
766
766
  }
767
767
  },
768
- "version": "0.0.55-beta.pr57.92"
768
+ "version": "0.0.55-beta.pr57.93"
769
769
  }
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.55-beta.pr57.92",
4
+ "version": "0.0.55-beta.pr57.93",
5
5
  "author": "provishalk",
6
6
  "bin": {
7
7
  "mailmodo": "bin/run.js"