@letterstory/cli 0.177.109 → 0.177.111
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 +10 -6
- package/lib/commands/automate.mjs +4 -0
- package/lib/commands/site.mjs +1 -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.111";
|
|
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.
|
|
@@ -235,6 +237,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
235
237
|
"no-modifiers",
|
|
236
238
|
// site map: do not start an audit for a host that has none.
|
|
237
239
|
"no-audit",
|
|
240
|
+
// site map: the owner lets Letter crawl past the site's robots.txt.
|
|
241
|
+
"crawl-past-robots",
|
|
238
242
|
// admin deployments: answer from our rows alone, without reading the host.
|
|
239
243
|
"no-host",
|
|
240
244
|
// site metrics: skip the previous window (no deltas, no revamp indicator).
|
|
@@ -745,15 +749,15 @@ Reviewers:
|
|
|
745
749
|
and what Letterpress then does
|
|
746
750
|
automate show <automation-id>
|
|
747
751
|
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|
|
|
752
|
+
competitor_changes|icp_visitors|icp_followups|vc_visitors|transact_questions|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
|
|
749
753
|
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]
|
|
754
|
+
[--name <n>] [--trigger competitor_page|competitor_change|visitor_identified|issue_found|build_suggestion|plan_update|post_ready|
|
|
755
|
+
transact_ask|custom|schedule]
|
|
752
756
|
[--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--instruction <which events>]
|
|
753
757
|
[--event <name>] [--kind post|landing] [--competitor <host>] [--site <host>]
|
|
754
758
|
[--every <n> --unit hours|days|weeks|months] [--facts <a,b>] [--recipe <id>]
|
|
755
759
|
[--fit-run <run-id> --publication-host <site>]
|
|
756
|
-
[--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>]
|
|
760
|
+
[--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>] [--not-in-sources-only]
|
|
757
761
|
[--per-day <n>] [--backfill all|<YYYY-MM-DD>] [--off]
|
|
758
762
|
Make one (a template fills what you leave out): it starts
|
|
759
763
|
from now (--backfill also runs it on past events, oldest
|
|
@@ -1955,7 +1959,7 @@ Build (a change to your site, or launching what isn't code; the Build box's own
|
|
|
1955
1959
|
|
|
1956
1960
|
The Site (one model of your whole marketing site, keyed by host and path):
|
|
1957
1961
|
site list Mapped hosts, and hosts you already have elsewhere
|
|
1958
|
-
site map <host> [--sitemap <url>] [--max-pages <n>] [--no-audit] [--relation owned|watched]
|
|
1962
|
+
site map <host> [--sitemap <url>] [--max-pages <n>] [--no-audit] [--relation owned|watched] [--crawl-past-robots]
|
|
1959
1963
|
Map a host from its sitemap; starts an audit if it has none
|
|
1960
1964
|
site refresh <host> [--force-map] [--force-audit] [--skip-observe] [--skip-suggest]
|
|
1961
1965
|
Run the daily loop now: re-map, re-audit, signals, Jev
|
|
@@ -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.
|
package/lib/commands/site.mjs
CHANGED
|
@@ -65,6 +65,7 @@ const ARGS = {
|
|
|
65
65
|
max_pages: { flag: "max-pages", type: "num" },
|
|
66
66
|
audit: { flag: "no-audit", type: "bool", invert: true },
|
|
67
67
|
relation: { flag: "relation", enum: ["owned", "watched"] },
|
|
68
|
+
crawl_past_robots: { flag: "crawl-past-robots", type: "bool" },
|
|
68
69
|
},
|
|
69
70
|
refresh_site: {
|
|
70
71
|
host: { positional: 0, required: true, label: "host" },
|