@letterstory/cli 0.177.214 → 0.177.215

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.214";
96
+ export const VERSION = "0.177.215";
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;
@@ -810,7 +810,7 @@ Reviewers:
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
812
  preview_ready|transact_ask|custom|schedule]
813
- [--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--instruction <which events>]
813
+ [--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--tag <U…>] [--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>]
@@ -829,7 +829,7 @@ Reviewers:
829
829
  (relink_posts, mention_revisions: --letterbase;
830
830
  auto_plan: --host; fix_autopilot) is made, or added
831
831
  back where someone removed it, acting as Letter
832
- automate set <automation-id> [--name <n>] [--instruction <text>] [--prompt <text>] [--slack-channel <C…>|none]
832
+ automate set <automation-id> [--name <n>] [--instruction <text>] [--prompt <text>] [--slack-channel <C…>|none] [--tag <U…>|none]
833
833
  [--backfill all|<YYYY-MM-DD>] [--on|--off] ...
834
834
  automate try [<automation-id>] [--trigger <t> --prompt <text> --instruction <text> ...] [--limit <n>]
835
835
  What it would do with the latest events (acts on none)
@@ -86,6 +86,10 @@ const slackChannel = {
86
86
  ? null
87
87
  : String(flags["slack-channel"]),
88
88
  };
89
+ // --tag U0123ABCD: who each post in the channel starts by tagging (a member of its workspace), or none.
90
+ const slackMention = {
91
+ value: (flags) => (flags.tag === undefined ? undefined : flags.tag === "none" ? null : String(flags.tag)),
92
+ };
89
93
  const enabled = { value: (flags) => (flags.off === true ? false : flags.on === true ? true : undefined) };
90
94
  // --backfill all (the whole history the trigger's source keeps) or --backfill 2026-09-01 (from that day):
91
95
  // also run it on past events, oldest first.
@@ -167,6 +171,7 @@ export const ARGS = {
167
171
  instruction: { flag: "instruction" },
168
172
  prompt: { flag: "prompt" },
169
173
  slack_channel: slackChannel,
174
+ slack_mention: slackMention,
170
175
  enabled,
171
176
  backfill,
172
177
  },
@@ -179,6 +184,7 @@ export const ARGS = {
179
184
  instruction: { flag: "instruction" },
180
185
  prompt: { flag: "prompt" },
181
186
  slack_channel: slackChannel,
187
+ slack_mention: slackMention,
182
188
  enabled,
183
189
  backfill,
184
190
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.214",
3
+ "version": "0.177.215",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",