@letterstory/cli 0.177.164 → 0.177.166
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/README.md +5 -0
- package/lib/cli.mjs +2 -1
- package/lib/commands/admin.mjs +13 -2
- package/lib/commands/insights.mjs +8 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -856,6 +856,11 @@ letterstory insights summary [--period 14d|30d|90d] [--part <block>]...
|
|
|
856
856
|
# weeks vs the 2 before, 30d → 4 vs 4, 90d → 13 vs 13.
|
|
857
857
|
letterstory insights competitors [--period 14d|30d|90d]
|
|
858
858
|
|
|
859
|
+
# GEO → Competitors tab: per tracked competitor, the posts and landing pages it
|
|
860
|
+
# published in the window (each with the answers citing it) and the AI answers
|
|
861
|
+
# citing its site. Its share of voice is `insights competitors`, on `key`.
|
|
862
|
+
letterstory insights competitor-geo [--period 14d|30d|90d]
|
|
863
|
+
|
|
859
864
|
# The AI Visibility Bank: which questions named you, cited your pages, or both (a
|
|
860
865
|
# breakthrough). All time unless --period; --source picks the phantom network
|
|
861
866
|
# (default), your marketing site, or the whole portfolio; --phantom narrows to
|
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.166";
|
|
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;
|
|
@@ -1955,6 +1955,7 @@ Insights:
|
|
|
1955
1955
|
insights claims [--period …] [--verdict true|outdated|wrong|unknown|unchecked] [--entity self|<rival>] [--limit n]
|
|
1956
1956
|
The claims AI answers make about you, each checked against your facts
|
|
1957
1957
|
insights competitors [--period 14d|30d|90d] GEO → Competitors: share of mentions per brand, is it moving, by engine/question
|
|
1958
|
+
insights competitor-geo [--period 14d|30d|90d] What each competitor published and the AI answers citing its site
|
|
1958
1959
|
insights question <key> [--period 14d|30d|90d] [--filter all|named_you|rival_not_you|no_one] [--limit n]
|
|
1959
1960
|
One By-question row: the wordings asked and the AI answers
|
|
1960
1961
|
insights detection How your brand is detected in AI answers (terms, who set them)
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// admin letterpress settings|flip|set … (recipes:read / recipes:write)
|
|
26
26
|
// admin invariants [--org <id>,…] [--limit N] [--presses] (staff)
|
|
27
27
|
// admin lost-posts [--code lost_guard,lost_provider|held_guard] [--rework] [--days N] [--org <id>] [--limit N] [--apply] (staff)
|
|
28
|
-
// admin demo guide|list|show|set|reset|check|ideas …
|
|
28
|
+
// admin demo guide|list|show|set|reset|check|ideas|sample … (demo:read / demo:write)
|
|
29
29
|
// admin deployments [--health down|failing|blocked|setting_up|live|paused|archived] [--org <id>] [--q <text>] [--archived] [--test] [--no-host] (fleet:read)
|
|
30
30
|
// admin deployments move <app-id> --to <org-id> (--dry-run | --yes) (fleet:onboard)
|
|
31
31
|
// admin models runs|run|star|unstar|scoreboard|requests|request|sampling … (models:read / models:write)
|
|
@@ -7366,7 +7366,7 @@ const DEMO_ITEM_FLAGS = [
|
|
|
7366
7366
|
"setup",
|
|
7367
7367
|
];
|
|
7368
7368
|
const DEMO_USAGE =
|
|
7369
|
-
"Usage: admin demo guide | list [--enrollable] | show <org-id> [--moves] | set <org-id> [--enroll] [--unenroll] [--file <state.json>] [--phantom parked|shown] [--main-blog …] [--visitors …] [--probes not_run|shown] [--cms hidden|shown] [--publish-target …] [--search-console …] [--github …] [--domain …] [--setup fresh|finished] [--domain-cap n] [--inject <key>]... [--hide <key>]... [--save-as <name>] [--baseline <owner/repo>[@sha] | --clear-baseline] [--copy-from <org-id> [--copy-scenarios a,b] [--overwrite]] [--auto-reset <scenario>|off] [--every <minutes>] [--release] | domains | new <domain> [--name <n>] [--brief <t>] [--full] [--host vercel|pages] [--no-wait] | teardown <org-id> [--keep-repo] | bootstrap <org-id>... --from <org-id> [--scenarios a,b] [--overwrite] | reset <org-id> <scenario> [--clean-slate] [--close-prs since_applied|all_open|none] [--hold <minutes>] [--restore-repo revert|force] [--rebuild] [--reread-company] [--forget-company] [--forget-site] | check <org-id> | ideas <org-id> [--library] [--preview] [--force] | ideas <org-id> --status [--id <run-id>] | sweep [--prepare] [--pull-requests] [--recipes <id>,…] [--variation <n|name>] [--pick <recipe>[:<variation>]]... [--new-org] [--orgs <id>,…] [--exclude <id>,…] [--buy <recipe-id>,…] [--make-orgs] [--no-refit] | sweep --status [--id <sweep-id>] | sweep --reset <recipe-id> [--id <sweep-id>]";
|
|
7369
|
+
"Usage: admin demo guide | list [--enrollable] | show <org-id> [--moves] | set <org-id> [--enroll] [--unenroll] [--file <state.json>] [--phantom parked|shown] [--main-blog …] [--visitors …] [--probes not_run|shown] [--cms hidden|shown] [--publish-target …] [--search-console …] [--github …] [--domain …] [--setup fresh|finished] [--domain-cap n] [--inject <key>]... [--hide <key>]... [--save-as <name>] [--baseline <owner/repo>[@sha] | --clear-baseline] [--copy-from <org-id> [--copy-scenarios a,b] [--overwrite]] [--auto-reset <scenario>|off] [--every <minutes>] [--release] | domains | sample | new <domain> [--name <n>] [--brief <t>] [--full] [--host vercel|pages] [--no-wait] | teardown <org-id> [--keep-repo] | bootstrap <org-id>... --from <org-id> [--scenarios a,b] [--overwrite] | reset <org-id> <scenario> [--clean-slate] [--close-prs since_applied|all_open|none] [--hold <minutes>] [--restore-repo revert|force] [--rebuild] [--reread-company] [--forget-company] [--forget-site] | check <org-id> | ideas <org-id> [--library] [--preview] [--force] | ideas <org-id> --status [--id <run-id>] | sweep [--prepare] [--pull-requests] [--recipes <id>,…] [--variation <n|name>] [--pick <recipe>[:<variation>]]... [--new-org] [--orgs <id>,…] [--exclude <id>,…] [--buy <recipe-id>,…] [--make-orgs] [--no-refit] | sweep --status [--id <sweep-id>] | sweep --reset <recipe-id> [--id <sweep-id>]";
|
|
7370
7370
|
|
|
7371
7371
|
const readinessLines = (r) =>
|
|
7372
7372
|
r
|
|
@@ -7587,6 +7587,17 @@ async function cmdAdminDemo(ctx) {
|
|
|
7587
7587
|
);
|
|
7588
7588
|
return 0;
|
|
7589
7589
|
}
|
|
7590
|
+
case "sample": {
|
|
7591
|
+
// Acme, the sample org (seed_sample_org): made or refreshed with made-up data dated to end yesterday.
|
|
7592
|
+
const r = await staffPost(ctx, `${DEMO}/sample`, {});
|
|
7593
|
+
printResult(io, flags, r, (x) =>
|
|
7594
|
+
[
|
|
7595
|
+
`${x.name} (${x.domain}) ${x.created ? "made" : "refreshed"}: ${x.org_id}`,
|
|
7596
|
+
...Object.entries(x.counts).map(([what, n]) => ` ${what}: ${n}`),
|
|
7597
|
+
].join("\n")
|
|
7598
|
+
);
|
|
7599
|
+
return 0;
|
|
7600
|
+
}
|
|
7590
7601
|
case "new": {
|
|
7591
7602
|
// A new demo org on a farm phantom's domain. It takes minutes (Pages' first build, the certificate), so
|
|
7592
7603
|
// each call works for a bounded time and says what it waits for; this calls again until done.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// `insights` — Search Console impressions/clicks across the phantom network, at the
|
|
2
2
|
// network, single-post, and top-posts levels (ported from phantomstory-cli's
|
|
3
|
-
// insights.ts); plus Measure's Overview (`summary`),
|
|
4
|
-
// (`competitors`), AI Visibility Bank (`bank`) and phantom Page Access (`access`);
|
|
3
|
+
// insights.ts); plus Measure's Overview (`summary`), share of voice by competitor
|
|
4
|
+
// (`competitors`), what each competitor published and where AI answers cite it (`competitor-geo`), AI Visibility Bank (`bank`) and phantom Page Access (`access`);
|
|
5
5
|
// Measure → Reads (`reads`), Prompt tracking (`prompts`, also `questions`), Keyword tracking (`keywords`, or
|
|
6
6
|
// `keywords <topic>` to research one, `add-keywords` to add some to a cluster), Pages (`pages`, one page's answers `page`), the posts naming you (`mentions`)
|
|
7
7
|
// and Portrayal (`portrayal`, its claims `claims`: how AI answers describe you), and the live feed of what
|
|
@@ -102,6 +102,9 @@ export const ARGS = {
|
|
|
102
102
|
question: { flag: "question" },
|
|
103
103
|
limit: { flag: "limit", type: "num" },
|
|
104
104
|
},
|
|
105
|
+
list_competitor_geo: {
|
|
106
|
+
period: { flag: "period", enum: PERIODS },
|
|
107
|
+
},
|
|
105
108
|
get_cited_page_answers: {
|
|
106
109
|
page: { positional: 0, label: "page", required: true },
|
|
107
110
|
period: { flag: "period", enum: PERIODS },
|
|
@@ -157,6 +160,8 @@ export async function cmdInsights(ctx) {
|
|
|
157
160
|
return call(rest, "get_measure_summary");
|
|
158
161
|
case "competitors":
|
|
159
162
|
return call(rest, "get_share_of_voice_detail");
|
|
163
|
+
case "competitor-geo":
|
|
164
|
+
return call(rest, "list_competitor_geo");
|
|
160
165
|
case "question":
|
|
161
166
|
return call(rest, "get_share_of_voice_question");
|
|
162
167
|
case "detection":
|
|
@@ -200,7 +205,7 @@ export async function cmdInsights(ctx) {
|
|
|
200
205
|
return call(rest, "select_gsc_property");
|
|
201
206
|
default:
|
|
202
207
|
throw new CliError(
|
|
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`
|
|
208
|
+
`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, competitor-geo, question, detection, set-detection, activity, story, site, post, top, bank, access, properties, property`
|
|
204
209
|
);
|
|
205
210
|
}
|
|
206
211
|
}
|