@letterstory/cli 0.175.2 → 0.175.3
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 +1 -1
- package/lib/commands/ask.mjs +4 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
} from "./commands.mjs";
|
|
77
77
|
|
|
78
78
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
79
|
-
export const VERSION = "0.175.
|
|
79
|
+
export const VERSION = "0.175.3";
|
|
80
80
|
|
|
81
81
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
82
82
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
package/lib/commands/ask.mjs
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// ask --outcome geo|seo|… → the plan for that outcome (the Plan tab's box)
|
|
5
5
|
// ask --lens fix | --lens build → what's broken (most pressing first) | what to build
|
|
6
6
|
// ask "<words…>" → in your own words; what nothing does comes back as unmet
|
|
7
|
+
// ask "<words…>" --found "<…>" → with what you read outside the account for them (a case study)
|
|
7
8
|
|
|
8
9
|
import { CliError } from "../client.mjs";
|
|
9
10
|
import { argsFromFlags, flagStr, printResult, refuseUnknownFlags } from "./shared.mjs";
|
|
@@ -13,6 +14,8 @@ export const ARGS = {
|
|
|
13
14
|
outcome: "outcome",
|
|
14
15
|
lens: "lens",
|
|
15
16
|
words: { value: (flags, positionals) => flagStr(flags.words) ?? (positionals.join(" ").trim() || undefined) },
|
|
17
|
+
// --found: what was read outside the account for the words (a case study, a competitor), as findings.
|
|
18
|
+
found: "found",
|
|
16
19
|
// --refresh: decide every strategy again from the facts as they are now (the standing fit is read otherwise).
|
|
17
20
|
refresh: { flag: "refresh", type: "bool" },
|
|
18
21
|
domain: "site",
|
|
@@ -21,7 +24,7 @@ export const ARGS = {
|
|
|
21
24
|
|
|
22
25
|
export async function cmdAsk(ctx) {
|
|
23
26
|
const { client, flags, io } = ctx;
|
|
24
|
-
refuseUnknownFlags(ctx, {}, ["outcome", "lens", "words", "site", "refresh"]);
|
|
27
|
+
refuseUnknownFlags(ctx, {}, ["outcome", "lens", "words", "found", "site", "refresh"]);
|
|
25
28
|
const args = argsFromFlags(ARGS.ask_letterpress, flags, ctx.positionals, {});
|
|
26
29
|
if ([args.outcome, args.lens, args.words].filter(Boolean).length > 1)
|
|
27
30
|
throw new CliError("One ask at a time: --outcome, --lens fix|build, or your words.");
|