@letterstory/cli 0.177.109 → 0.177.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.
- package/lib/cli.mjs +7 -5
- package/lib/commands/automate.mjs +4 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
92
92
|
|
|
93
93
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
94
|
-
export const VERSION = "0.177.
|
|
94
|
+
export const VERSION = "0.177.110";
|
|
95
95
|
|
|
96
96
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
97
97
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -167,6 +167,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
167
167
|
"on",
|
|
168
168
|
"off",
|
|
169
169
|
"hot-leads-only",
|
|
170
|
+
// automate add/set: transact_ask only for questions the sources didn't answer.
|
|
171
|
+
"not-in-sources-only",
|
|
170
172
|
"include-checks",
|
|
171
173
|
"results-only",
|
|
172
174
|
// admin crm prospect-org: start (or retry) the org prepared for the booked call.
|
|
@@ -745,15 +747,15 @@ Reviewers:
|
|
|
745
747
|
and what Letterpress then does
|
|
746
748
|
automate show <automation-id>
|
|
747
749
|
automate add [--template post_new_issues|recommended_actions|competitor_pages|competitor_takes|
|
|
748
|
-
competitor_changes|icp_visitors|icp_followups|vc_visitors|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
|
|
750
|
+
competitor_changes|icp_visitors|icp_followups|vc_visitors|transact_questions|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
|
|
749
751
|
relink_posts|mention_revisions|fix_autopilot|auto_plan|ai_portrayal] [--letterbase <id>|--host <site>]
|
|
750
|
-
[--name <n>] [--trigger competitor_page|competitor_change|visitor_identified|issue_found|build_suggestion|plan_update|
|
|
751
|
-
schedule]
|
|
752
|
+
[--name <n>] [--trigger competitor_page|competitor_change|visitor_identified|issue_found|build_suggestion|plan_update|post_ready|
|
|
753
|
+
transact_ask|custom|schedule]
|
|
752
754
|
[--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--instruction <which events>]
|
|
753
755
|
[--event <name>] [--kind post|landing] [--competitor <host>] [--site <host>]
|
|
754
756
|
[--every <n> --unit hours|days|weeks|months] [--facts <a,b>] [--recipe <id>]
|
|
755
757
|
[--fit-run <run-id> --publication-host <site>]
|
|
756
|
-
[--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>]
|
|
758
|
+
[--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>] [--not-in-sources-only]
|
|
757
759
|
[--per-day <n>] [--backfill all|<YYYY-MM-DD>] [--off]
|
|
758
760
|
Make one (a template fills what you leave out): it starts
|
|
759
761
|
from now (--backfill also runs it on past events, oldest
|
|
@@ -18,6 +18,7 @@ const TRIGGERS = [
|
|
|
18
18
|
"build_suggestion",
|
|
19
19
|
"plan_update",
|
|
20
20
|
"post_ready",
|
|
21
|
+
"transact_ask",
|
|
21
22
|
"custom",
|
|
22
23
|
"schedule",
|
|
23
24
|
];
|
|
@@ -31,6 +32,7 @@ const TEMPLATES = [
|
|
|
31
32
|
"icp_visitors",
|
|
32
33
|
"icp_followups",
|
|
33
34
|
"vc_visitors",
|
|
35
|
+
"transact_questions",
|
|
34
36
|
"plan_updates",
|
|
35
37
|
"weekly_release_notes",
|
|
36
38
|
"weekly_growth_brief",
|
|
@@ -54,6 +56,8 @@ const triggerParams = {
|
|
|
54
56
|
collections: { flag: "post-letterbase", type: "list" },
|
|
55
57
|
hosts: { flag: "site", type: "list" },
|
|
56
58
|
hot_leads_only: { flag: "hot-leads-only", type: "bool" },
|
|
59
|
+
// --not-in-sources-only: transact_ask only for questions the sources didn't answer.
|
|
60
|
+
not_in_sources_only: { flag: "not-in-sources-only", type: "bool" },
|
|
57
61
|
// --icp: only people who fit the company's ICP (visitor_identified), checked against their stored fit.
|
|
58
62
|
icp: { flag: "icp", type: "bool" },
|
|
59
63
|
// --delivery daily --delivery-hour 17 --timezone America/New_York: visitors in one Slack message a day.
|