@letterstory/cli 0.165.1 → 0.165.2

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.
package/lib/cli.mjs CHANGED
@@ -74,7 +74,7 @@ import {
74
74
  } from "./commands.mjs";
75
75
 
76
76
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
77
- export const VERSION = "0.165.1";
77
+ export const VERSION = "0.165.2";
78
78
 
79
79
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
80
80
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -1444,7 +1444,9 @@ Mailers (the sending mailboxes):
1444
1444
  Recent mail (envelopes)
1445
1445
  mailers message <mailer-id> <uid> --folder inbox|sent
1446
1446
  One message in full (plain-text body)
1447
- mailers forward <mailer-id> (--to <email> | --clear) Copy inbound mail to an address
1447
+ mailers forward <mailer-id> (--to <email> | --clear) Forward replies to sequences to an address
1448
+ mailers forwards <mailer-id> [--outcome forwarded|held|failed] [--limit <n>]
1449
+ What forwarding forwarded or held, and why
1448
1450
  mailers warmup start|pause <mailer-id> Start / pause warming (14+ days; ready at score 85)
1449
1451
  mailers limit <mailer-id> <per-day> Daily send limit, 0..500 (not while warming)
1450
1452
  mailers retire <mailer-id> [--release-mailbox --yes] Disable a mailer; --release-mailbox also deletes
@@ -352,6 +352,11 @@ export const ARGS = {
352
352
  uid: messageRefPositional(1, "uid"),
353
353
  folder: { flag: "folder", required: true, enum: MAILER_FOLDERS },
354
354
  },
355
+ list_mailer_forwards: {
356
+ mailer_id: { positional: 0, label: "mailer-id", required: true },
357
+ outcome: { flag: "outcome", enum: ["pending", "forwarded", "held", "failed"] },
358
+ limit: { flag: "limit", type: "num" },
359
+ },
355
360
  set_mailer_forwarding: {
356
361
  mailer_id: { positional: 0, label: "mailer-id", required: true },
357
362
  forward_to: {
@@ -698,7 +703,7 @@ async function prospectsColumns(ctx, sub) {
698
703
  }
699
704
  }
700
705
 
701
- const MAILERS_USAGE = `Usage: mailers <list|domains|domain|quote|launch|move|messages|message|forward|warmup|limit|retire|suppressions>`;
706
+ const MAILERS_USAGE = `Usage: mailers <list|domains|domain|quote|launch|move|messages|message|forward|forwards|warmup|limit|retire|suppressions>`;
702
707
 
703
708
  export async function cmdMailers(ctx) {
704
709
  const sub = ctx.positionals[0];
@@ -746,6 +751,8 @@ export async function cmdMailers(ctx) {
746
751
  return run(rest, "get_mailer_message");
747
752
  case "forward":
748
753
  return run(rest, "set_mailer_forwarding", "Forwarding updated.");
754
+ case "forwards":
755
+ return run(rest, "list_mailer_forwards");
749
756
  case "warmup": {
750
757
  const action = rest.positionals[0];
751
758
  const inner = { ...rest, positionals: rest.positionals.slice(1) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.165.1",
3
+ "version": "0.165.2",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",