@letterstory/cli 0.176.104 → 0.176.105

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
@@ -87,7 +87,7 @@ import {
87
87
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
88
88
 
89
89
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
90
- export const VERSION = "0.176.104";
90
+ export const VERSION = "0.176.105";
91
91
 
92
92
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
93
93
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -679,6 +679,7 @@ Reviewers:
679
679
  [--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--instruction <which events>]
680
680
  [--event <name>] [--kind post|landing] [--competitor <host>] [--site <host>]
681
681
  [--every <n> --unit hours|days|weeks|months] [--facts <a,b>] [--recipe <id>]
682
+ [--fit-run <run-id> --publication-host <site>]
682
683
  [--hot-leads-only] [--per-day <n>] [--backfill all|<YYYY-MM-DD>] [--off]
683
684
  Make one (a template fills what you leave out): it starts
684
685
  from now (--backfill also runs it on past events, oldest
@@ -132,6 +132,15 @@ export const ARGS = {
132
132
  scope,
133
133
  // --recipe <id>: make the automation a Plan recipe carries (the Plan row's own call).
134
134
  recipe: { flag: "recipe" },
135
+ publication: {
136
+ value: (flags) => {
137
+ const run = flagStr(flags["fit-run"]);
138
+ const host = flagStr(flags["publication-host"]);
139
+ if (Boolean(run) !== Boolean(host))
140
+ throw new CliError("Pass --fit-run and --publication-host together.");
141
+ return run ? { run_id: run, host } : undefined;
142
+ },
143
+ },
135
144
  name: { flag: "name" },
136
145
  trigger: { flag: "trigger", enum: TRIGGERS },
137
146
  trigger_params: triggerParams,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.176.104",
3
+ "version": "0.176.105",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",