@letterstory/cli 0.174.1 → 0.174.2
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 +3 -1
- package/lib/commands/ask.mjs +3 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
} from "./commands.mjs";
|
|
76
76
|
|
|
77
77
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
78
|
-
export const VERSION = "0.174.
|
|
78
|
+
export const VERSION = "0.174.2";
|
|
79
79
|
|
|
80
80
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
81
81
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -94,6 +94,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
94
94
|
"customers",
|
|
95
95
|
// build: repeat an open build's ask; post its progress in the org's Slack channel.
|
|
96
96
|
"again",
|
|
97
|
+
// ask --web: read the web in the Plan's fit for a recipe the facts can't decide (off by default).
|
|
98
|
+
"web",
|
|
97
99
|
"notify-slack",
|
|
98
100
|
"remap",
|
|
99
101
|
// site observations: each kind noticed, not the observations (keys_only).
|
package/lib/commands/ask.mjs
CHANGED
|
@@ -13,13 +13,15 @@ export const ARGS = {
|
|
|
13
13
|
outcome: "outcome",
|
|
14
14
|
lens: "lens",
|
|
15
15
|
words: { value: (flags, positionals) => flagStr(flags.words) ?? (positionals.join(" ").trim() || undefined) },
|
|
16
|
+
// --web: read the web for a recipe the facts can't decide (off by default: facts only).
|
|
17
|
+
web: { flag: "web", type: "bool" },
|
|
16
18
|
domain: "site",
|
|
17
19
|
},
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
export async function cmdAsk(ctx) {
|
|
21
23
|
const { client, flags, io } = ctx;
|
|
22
|
-
refuseUnknownFlags(ctx, {}, ["outcome", "lens", "words", "site"]);
|
|
24
|
+
refuseUnknownFlags(ctx, {}, ["outcome", "lens", "words", "site", "web"]);
|
|
23
25
|
const args = argsFromFlags(ARGS.ask_letterpress, flags, ctx.positionals, {});
|
|
24
26
|
if ([args.outcome, args.lens, args.words].filter(Boolean).length > 1)
|
|
25
27
|
throw new CliError("One ask at a time: --outcome, --lens fix|build, or your words.");
|