@letterstory/cli 0.177.212 → 0.177.214

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
@@ -93,7 +93,7 @@ import {
93
93
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
94
94
 
95
95
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
96
- export const VERSION = "0.177.212";
96
+ export const VERSION = "0.177.214";
97
97
 
98
98
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
99
99
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -806,15 +806,15 @@ Reviewers:
806
806
  and what Letterpress then does
807
807
  automate show <automation-id>
808
808
  automate add [--template post_new_issues|recommended_actions|competitor_pages|competitor_takes|
809
- competitor_changes|icp_visitors|icp_followups|vc_visitors|transact_questions|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
809
+ competitor_changes|icp_visitors|icp_followups|vc_visitors|transact_questions|idea_previews|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
810
810
  relink_posts|mention_revisions|fix_autopilot|auto_plan|ai_portrayal] [--letterbase <id>|--host <site>]
811
811
  [--name <n>] [--trigger competitor_page|competitor_change|visitor_identified|issue_found|build_suggestion|plan_update|post_ready|
812
- transact_ask|custom|schedule]
812
+ preview_ready|transact_ask|custom|schedule]
813
813
  [--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--instruction <which events>]
814
814
  [--event <name>] [--kind post|landing] [--competitor <host>] [--site <host>]
815
815
  [--every <n> --unit hours|days|weeks|months] [--facts <a,b>] [--recipe <id>]
816
816
  [--fit-run <run-id> --publication-host <site>]
817
- [--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>] [--not-in-sources-only]
817
+ [--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>] [--not-in-sources-only] [--started-by letter|anyone]
818
818
  [--per-day <n>] [--backfill all|<YYYY-MM-DD>] [--off]
819
819
  Make one (a template fills what you leave out): it starts
820
820
  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
+ "preview_ready",
21
22
  "transact_ask",
22
23
  "custom",
23
24
  "schedule",
@@ -33,6 +34,7 @@ const TEMPLATES = [
33
34
  "icp_followups",
34
35
  "vc_visitors",
35
36
  "transact_questions",
37
+ "idea_previews",
36
38
  "plan_updates",
37
39
  "weekly_release_notes",
38
40
  "weekly_growth_brief",
@@ -55,6 +57,8 @@ const triggerParams = {
55
57
  // --post-letterbase <id>: post_ready only for these letterbases (--letterbase is a job's scope).
56
58
  collections: { flag: "post-letterbase", type: "list" },
57
59
  hosts: { flag: "site", type: "list" },
60
+ // --started-by letter|anyone: preview_ready only for builds Letter started on its own (the default), or every build.
61
+ started_by: { flag: "started-by", enum: ["letter", "anyone"] },
58
62
  hot_leads_only: { flag: "hot-leads-only", type: "bool" },
59
63
  // --not-in-sources-only: transact_ask only for questions the sources didn't answer.
60
64
  not_in_sources_only: { flag: "not-in-sources-only", type: "bool" },
@@ -188,6 +188,8 @@ const ARGS = {
188
188
  base_branch: "branch",
189
189
  action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
190
190
  preview: { flag: "preview", type: "bool" },
191
+ // --keep-open: the organization's auto-merge window never merges its pull request (Merge still does).
192
+ keep_open: { flag: "keep-open", type: "bool" },
191
193
  },
192
194
  letterprove_open_install_pr: {
193
195
  provider,
@@ -198,6 +200,8 @@ const ARGS = {
198
200
  repo_name: { value: (flags) => splitRepo(flags).name },
199
201
  base_branch: "branch",
200
202
  action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
203
+ // --keep-open: the organization's auto-merge window never merges its pull request (Merge still does).
204
+ keep_open: { flag: "keep-open", type: "bool" },
201
205
  },
202
206
  visitors_open_install_pr: {
203
207
  provider,
@@ -605,7 +609,7 @@ async function followRun(ctx, run) {
605
609
  /** `repo fix-audit --issue <type> [--audit <id>] [--wait]`: one audit issue → one PR, in the repo verified to build the site. */
606
610
  async function repoFixAudit(ctx) {
607
611
  const { client, flags, io } = ctx;
608
- refuseUnknownFlags(ctx, {}, ["issue", "audit", "branch", "action", "preview", "wait"]);
612
+ refuseUnknownFlags(ctx, {}, ["issue", "audit", "branch", "action", "preview", "keep-open", "wait"]);
609
613
  if (issueList(flags).length === 0)
610
614
  throw new CliError("--issue <issue-type> is required (repeat it to fix several in one PR)");
611
615
  const result = await client.callTool(
@@ -623,7 +627,7 @@ async function repoFixAudit(ctx) {
623
627
  /** `repo install-letterprove --repo owner/name [--host h] [--branch b] [--wait]`: the Visitors script on the product + identify → one PR. */
624
628
  async function repoInstallLetterprove(ctx) {
625
629
  const { client, flags, io } = ctx;
626
- refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "gitlab", "host", "branch", "action", "wait"]);
630
+ refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "gitlab", "host", "branch", "action", "keep-open", "wait"]);
627
631
  const result = await client.callTool(
628
632
  "letterprove_open_install_pr",
629
633
  argsFromFlags(ARGS.letterprove_open_install_pr, flags, ctx.positionals)
@@ -228,6 +228,8 @@ export const ARGS = {
228
228
  provider: { flag: "provider" },
229
229
  base_branch: { flag: "base" },
230
230
  mode: { flag: "mode" },
231
+ // --keep-open: the organization's auto-merge window never merges its pull request (Merge still does).
232
+ keep_open: { flag: "keep-open", type: "bool" },
231
233
  },
232
234
  discover_action_events: {
233
235
  source: { flag: "source" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.212",
3
+ "version": "0.177.214",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",