@letterstory/cli 0.176.104 → 0.176.106
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 +2 -1
- package/lib/commands/automate.mjs +9 -0
- package/lib/commands/deploy.mjs +1 -0
- package/lib/commands/domains.mjs +3 -0
- package/package.json +1 -1
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.
|
|
90
|
+
export const VERSION = "0.176.106";
|
|
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/lib/commands/deploy.mjs
CHANGED
|
@@ -26,6 +26,7 @@ function repoPart(value, i) {
|
|
|
26
26
|
|
|
27
27
|
export const ARGS = {
|
|
28
28
|
create_deployment: {
|
|
29
|
+
domain_quote: { value: (flags) => (flags["domain-quote"] ? JSON.parse(flags["domain-quote"]) : undefined) },
|
|
29
30
|
// The words after `create`, or --prompt for a longer ask.
|
|
30
31
|
prompt: { value: (flags, positionals) => flagStr(flags.prompt) ?? (positionals.join(" ").trim() || undefined) },
|
|
31
32
|
name: "name",
|
package/lib/commands/domains.mjs
CHANGED
|
@@ -63,6 +63,9 @@ export const ARGS = {
|
|
|
63
63
|
version: { flag: "version" },
|
|
64
64
|
// The words of a plan already read (`domains plan … --json`'s plan.words): that plan is built as it was.
|
|
65
65
|
words: { flag: "words" },
|
|
66
|
+
accepted_quote: {
|
|
67
|
+
value: (flags) => (flags["accepted-quote"] ? JSON.parse(flags["accepted-quote"]) : undefined),
|
|
68
|
+
},
|
|
66
69
|
},
|
|
67
70
|
};
|
|
68
71
|
|