@letterstory/cli 0.177.83 → 0.177.84

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 CHANGED
@@ -90,7 +90,7 @@ import {
90
90
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
91
91
 
92
92
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
93
- export const VERSION = "0.177.83";
93
+ export const VERSION = "0.177.84";
94
94
 
95
95
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
96
96
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -1873,7 +1873,8 @@ Insights:
1873
1873
  insights summary [--period …] [--part <block>]... Measure Overview: AI named/cited rates, share of voice, search, targets
1874
1874
  insights reads [--period …] [--site all|own|phantoms|<key>]... [--path <path>] [--engine <operator>]
1875
1875
  Measure → Reads: AI engines and people reading your sites, counted one way
1876
- insights questions [--period 14d|30d|90d] Measure → Questions: every question we ask, named / share / change / cited
1876
+ insights prompts [--period 14d|30d|90d] Measure → Prompt tracking: every prompt we ask, each engine's latest answer, share / change / cited
1877
+ insights keywords [topic] [--refresh] Measure → Keyword tracking: your keywords (searches, difficulty, intent, rank, tracked), or research a topic
1877
1878
  insights pages [--period 14d|30d|90d] [--site own|phantoms|<key>] Measure → Pages: your pages AI answers cited, won questions first
1878
1879
  insights page <page> [--period 14d|30d|90d] [--question <prompt-id>] [--filter all|won] [--limit n]
1879
1880
  One cited page: the AI answers that linked it, word for word
@@ -2,7 +2,8 @@
2
2
  // network, single-post, and top-posts levels (ported from phantomstory-cli's
3
3
  // insights.ts); plus Measure's Overview (`summary`), GEO → Competitors
4
4
  // (`competitors`), AI Visibility Bank (`bank`) and phantom Page Access (`access`);
5
- // Measure → Reads (`reads`), Questions (`questions`), Pages (`pages`, one page's answers `page`), the posts naming you (`mentions`)
5
+ // Measure → Reads (`reads`), Prompt tracking (`prompts`, also `questions`), Keyword tracking (`keywords`, or
6
+ // `keywords <topic>` to research one), Pages (`pages`, one page's answers `page`), the posts naming you (`mentions`)
6
7
  // and Portrayal (`portrayal`, its claims `claims`: how AI answers describe you), and the live feed of what
7
8
  // is reading the phantom sites (`activity`) — the same reads the web app renders. Search Console's
8
9
  // property: which ones the connected Google account can read (`properties`) and the one tracked (`property`).
@@ -40,6 +41,14 @@ export const ARGS = {
40
41
  list_measure_questions: {
41
42
  period: { flag: "period", enum: PERIODS },
42
43
  },
44
+ list_seo_opportunities: {
45
+ cluster_id: { flag: "cluster" },
46
+ refresh: { flag: "refresh", type: "bool" },
47
+ country: { flag: "country" },
48
+ },
49
+ research_keywords: {
50
+ topic: { positional: 0, label: "topic", required: true },
51
+ },
43
52
  list_cited_pages: {
44
53
  period: { flag: "period", enum: PERIODS },
45
54
  sites: { flag: "site", type: "list" },
@@ -104,7 +113,10 @@ export async function cmdInsights(ctx) {
104
113
  case "reads":
105
114
  return call(rest, "get_reads");
106
115
  case "questions":
116
+ case "prompts":
107
117
  return call(rest, "list_measure_questions");
118
+ case "keywords":
119
+ return rest.positionals.length > 0 ? call(rest, "research_keywords") : call(rest, "list_seo_opportunities");
108
120
  case "pages":
109
121
  return call(rest, "list_cited_pages");
110
122
  case "page":
@@ -123,7 +135,7 @@ export async function cmdInsights(ctx) {
123
135
  return call(rest, "select_gsc_property");
124
136
  default:
125
137
  throw new CliError(
126
- `Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, questions, pages, page, mentions, portrayal, claims, competitors, question, detection, activity, site, post, top, bank, access, properties, property`
138
+ `Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, prompts, keywords [topic], pages, page, mentions, portrayal, claims, competitors, question, detection, activity, site, post, top, bank, access, properties, property`
127
139
  );
128
140
  }
129
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.83",
3
+ "version": "0.177.84",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",