@letterstory/cli 0.177.154 → 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 +2 -1
- package/lib/commands/insights.mjs +8 -1
- package/lib/commands/visits.mjs +7 -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;
|
|
@@ -102,6 +102,7 @@ export const EXIT_PAYMENT_REQUIRED = 3;
|
|
|
102
102
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
103
103
|
// `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
|
|
104
104
|
export const BOOLEAN_FLAGS = new Set([
|
|
105
|
+
"update",
|
|
105
106
|
"include-tests",
|
|
106
107
|
"as-test",
|
|
107
108
|
"discover",
|
|
@@ -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
|
}
|
package/lib/commands/visits.mjs
CHANGED
|
@@ -169,7 +169,13 @@ export const ARGS = {
|
|
|
169
169
|
site_id: "site",
|
|
170
170
|
source_id: { positional: 0, label: "source id", required: true },
|
|
171
171
|
},
|
|
172
|
-
visitors_open_transact_pr: {
|
|
172
|
+
visitors_open_transact_pr: {
|
|
173
|
+
site_id: "site",
|
|
174
|
+
host: "host",
|
|
175
|
+
repo: "repo",
|
|
176
|
+
base_branch: "base",
|
|
177
|
+
update: { flag: "update", type: "bool" },
|
|
178
|
+
},
|
|
173
179
|
visitors_list_transact_asks: { site_id: "site", days, limit: { flag: "limit", type: "num" } },
|
|
174
180
|
visitors_export: {
|
|
175
181
|
site_id: "site",
|