@letterstory/cli 0.177.125 → 0.177.126

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
@@ -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.125";
96
+ export const VERSION = "0.177.126";
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;
@@ -1917,6 +1917,7 @@ Insights:
1917
1917
  Measure → Reads: AI engines and people reading your sites, counted one way
1918
1918
  insights prompts [--period 14d|30d|90d] Measure → Prompt tracking: every prompt we ask, each engine's latest answer, share / change / cited
1919
1919
  insights keywords [topic] [--refresh] Measure → Keyword tracking: your keywords (searches, difficulty, intent, rank, tracked), or research a topic
1920
+ insights add-keywords --cluster <id> --keyword <k> Add keywords to a keyword cluster (repeat --keyword or comma-separate)
1920
1921
  insights pages [--period 14d|30d|90d] [--site own|phantoms|<key>] Measure → Pages: your pages AI answers cited, won questions first
1921
1922
  insights page <page> [--period 14d|30d|90d] [--question <prompt-id>] [--filter all|won] [--limit n]
1922
1923
  One cited page: the AI answers that linked it, word for word
@@ -3,7 +3,7 @@
3
3
  // insights.ts); plus Measure's Overview (`summary`), GEO → Competitors
4
4
  // (`competitors`), AI Visibility Bank (`bank`) and phantom Page Access (`access`);
5
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
+ // `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
8
8
  // is reading the phantom sites (`activity`), The Story's signals snapshot (`story`) — the same reads the web app renders. Search Console's
9
9
  // property: which ones the connected Google account can read (`properties`) and the one tracked (`property`).
@@ -49,6 +49,10 @@ export const ARGS = {
49
49
  research_keywords: {
50
50
  topic: { positional: 0, label: "topic", required: true },
51
51
  },
52
+ add_keywords: {
53
+ cluster_id: { flag: "cluster", required: true },
54
+ keywords: { flag: "keyword", type: "list", required: true },
55
+ },
52
56
  list_cited_pages: {
53
57
  period: { flag: "period", enum: PERIODS },
54
58
  sites: { flag: "site", type: "list" },
@@ -119,6 +123,8 @@ export async function cmdInsights(ctx) {
119
123
  return call(rest, "list_measure_questions");
120
124
  case "keywords":
121
125
  return rest.positionals.length > 0 ? call(rest, "research_keywords") : call(rest, "list_seo_opportunities");
126
+ case "add-keywords":
127
+ return call(rest, "add_keywords");
122
128
  case "pages":
123
129
  return call(rest, "list_cited_pages");
124
130
  case "page":
@@ -139,7 +145,7 @@ export async function cmdInsights(ctx) {
139
145
  return call(rest, "select_gsc_property");
140
146
  default:
141
147
  throw new CliError(
142
- `Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, prompts, keywords [topic], pages, page, mentions, portrayal, claims, competitors, question, detection, activity, story, site, post, top, bank, access, properties, property`
148
+ `Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, prompts, keywords [topic], add-keywords, pages, page, mentions, portrayal, claims, competitors, question, detection, activity, story, site, post, top, bank, access, properties, property`
143
149
  );
144
150
  }
145
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.125",
3
+ "version": "0.177.126",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",