@letterstory/cli 0.177.155 → 0.177.156
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/insights.mjs +8 -1
- package/package.json +1 -1
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.
|
|
96
|
+
export const VERSION = "0.177.156";
|
|
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;
|
|
@@ -97,6 +97,11 @@ export const ARGS = {
|
|
|
97
97
|
period: { flag: "period", enum: PERIODS },
|
|
98
98
|
sites: { flag: "site", type: "list" },
|
|
99
99
|
},
|
|
100
|
+
list_answer_sources: {
|
|
101
|
+
period: { flag: "period", enum: PERIODS },
|
|
102
|
+
question: { flag: "question" },
|
|
103
|
+
limit: { flag: "limit", type: "num" },
|
|
104
|
+
},
|
|
100
105
|
get_cited_page_answers: {
|
|
101
106
|
page: { positional: 0, label: "page", required: true },
|
|
102
107
|
period: { flag: "period", enum: PERIODS },
|
|
@@ -177,6 +182,8 @@ export async function cmdInsights(ctx) {
|
|
|
177
182
|
return call(rest, "list_cited_pages");
|
|
178
183
|
case "page":
|
|
179
184
|
return call(rest, "get_cited_page_answers");
|
|
185
|
+
case "sources":
|
|
186
|
+
return call(rest, "list_answer_sources");
|
|
180
187
|
case "mentions":
|
|
181
188
|
return call(rest, "list_site_mentions");
|
|
182
189
|
case "portrayal":
|
|
@@ -193,7 +200,7 @@ export async function cmdInsights(ctx) {
|
|
|
193
200
|
return call(rest, "select_gsc_property");
|
|
194
201
|
default:
|
|
195
202
|
throw new CliError(
|
|
196
|
-
`Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, tracking-cadence, set-tracking-cadence, prompts, keywords [topic], add-keywords, pages, page, mentions, portrayal, claims, competitors, question, detection, set-detection, activity, story, site, post, top, bank, access, properties, property`
|
|
203
|
+
`Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, tracking-cadence, set-tracking-cadence, prompts, keywords [topic], add-keywords, pages, page, sources, mentions, portrayal, claims, competitors, question, detection, set-detection, activity, story, site, post, top, bank, access, properties, property`
|
|
197
204
|
);
|
|
198
205
|
}
|
|
199
206
|
}
|