@letterstory/cli 0.177.68 → 0.177.70
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 +4 -2
- package/lib/commands/automate.mjs +4 -0
- package/lib/commands/outbound.mjs +11 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
91
91
|
|
|
92
92
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
93
|
-
export const VERSION = "0.177.
|
|
93
|
+
export const VERSION = "0.177.70";
|
|
94
94
|
|
|
95
95
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
96
96
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -738,7 +738,8 @@ Reviewers:
|
|
|
738
738
|
[--event <name>] [--kind post|landing] [--competitor <host>] [--site <host>]
|
|
739
739
|
[--every <n> --unit hours|days|weeks|months] [--facts <a,b>] [--recipe <id>]
|
|
740
740
|
[--fit-run <run-id> --publication-host <site>]
|
|
741
|
-
[--hot-leads-only] [--icp] [--
|
|
741
|
+
[--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>]
|
|
742
|
+
[--per-day <n>] [--backfill all|<YYYY-MM-DD>] [--off]
|
|
742
743
|
Make one (a template fills what you leave out): it starts
|
|
743
744
|
from now (--backfill also runs it on past events, oldest
|
|
744
745
|
first), acts on its own, and posts each event it acts on
|
|
@@ -1812,6 +1813,7 @@ Mailers (the sending mailboxes):
|
|
|
1812
1813
|
mailers forward <mailer-id> (--to <email> | --clear) Forward replies to sequences to an address
|
|
1813
1814
|
mailers forwards <mailer-id> [--outcome forwarded|held|failed] [--limit <n>]
|
|
1814
1815
|
What forwarding forwarded or held, and why
|
|
1816
|
+
mailers test <mailer-id> --to <email> Send one test email (5 a mailer, 25 an org a day)
|
|
1815
1817
|
mailers warmup start|pause <mailer-id> Start / pause warming (14+ days; ready at score 85)
|
|
1816
1818
|
mailers limit <mailer-id> <per-day> Daily send limit, 0..500 (not while warming)
|
|
1817
1819
|
mailers retire <mailer-id> [--release-mailbox --yes] Disable a mailer; --release-mailbox also deletes
|
|
@@ -51,6 +51,10 @@ const triggerParams = {
|
|
|
51
51
|
hot_leads_only: { flag: "hot-leads-only", type: "bool" },
|
|
52
52
|
// --icp: only people who fit the company's ICP (visitor_identified), checked against their stored fit.
|
|
53
53
|
icp: { flag: "icp", type: "bool" },
|
|
54
|
+
// --delivery daily --delivery-hour 17 --timezone America/New_York: visitors in one Slack message a day.
|
|
55
|
+
delivery: { flag: "delivery", enum: ["live", "daily"] },
|
|
56
|
+
delivery_hour: { flag: "delivery-hour", type: "num" },
|
|
57
|
+
delivery_timezone: { flag: "timezone" },
|
|
54
58
|
event: { flag: "event" },
|
|
55
59
|
per_day: { flag: "per-day", type: "num" },
|
|
56
60
|
// --trigger schedule --every 2 --unit weeks: a recurring automation, on the calendar (Monday, the 1st).
|
|
@@ -379,6 +379,10 @@ export const ARGS = {
|
|
|
379
379
|
outcome: { flag: "outcome", enum: ["pending", "forwarded", "held", "failed"] },
|
|
380
380
|
limit: { flag: "limit", type: "num" },
|
|
381
381
|
},
|
|
382
|
+
send_mailer_test: {
|
|
383
|
+
mailer_id: { positional: 0, label: "mailer-id", required: true },
|
|
384
|
+
to: { flag: "to", required: true },
|
|
385
|
+
},
|
|
382
386
|
set_mailer_forwarding: {
|
|
383
387
|
mailer_id: { positional: 0, label: "mailer-id", required: true },
|
|
384
388
|
forward_to: {
|
|
@@ -725,7 +729,7 @@ async function prospectsColumns(ctx, sub) {
|
|
|
725
729
|
}
|
|
726
730
|
}
|
|
727
731
|
|
|
728
|
-
const MAILERS_USAGE = `Usage: mailers <list|domains|domain|retry|quote|launch|move|messages|message|forward|forwards|warmup|limit|retire|suppressions>`;
|
|
732
|
+
const MAILERS_USAGE = `Usage: mailers <list|domains|domain|retry|quote|launch|move|messages|message|forward|forwards|test|warmup|limit|retire|suppressions>`;
|
|
729
733
|
|
|
730
734
|
export async function cmdMailers(ctx) {
|
|
731
735
|
const sub = ctx.positionals[0];
|
|
@@ -777,6 +781,12 @@ export async function cmdMailers(ctx) {
|
|
|
777
781
|
return run(rest, "set_mailer_forwarding", "Forwarding updated.");
|
|
778
782
|
case "forwards":
|
|
779
783
|
return run(rest, "list_mailer_forwards");
|
|
784
|
+
case "test":
|
|
785
|
+
return run(
|
|
786
|
+
rest,
|
|
787
|
+
"send_mailer_test",
|
|
788
|
+
(r) => `Test sent from ${r?.from ?? "the mailer"} to ${r?.to ?? "the address"}.`
|
|
789
|
+
);
|
|
780
790
|
case "warmup": {
|
|
781
791
|
const action = rest.positionals[0];
|
|
782
792
|
const inner = { ...rest, positionals: rest.positionals.slice(1) };
|