@letterstory/cli 0.177.133 → 0.177.135

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 CHANGED
@@ -833,7 +833,7 @@ image generation, which is why the fan-out is capped at four models.
833
833
  Search Console performance, network-wide, per post, or top posts:
834
834
 
835
835
  ```bash
836
- letterstory insights site [--period 14d|30d|90d] [--collection <uuid>]
836
+ letterstory insights site [--period 14d|30d|90d] [--collection <uuid>] [--scope site|posts]
837
837
  letterstory insights post <article-id> [--period 14d|30d|90d]
838
838
  letterstory insights top [--period 14d|30d|90d] [--collection <uuid>] [--limit <n>] [--sort clicks|impressions]
839
839
  ```
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.133";
96
+ export const VERSION = "0.177.135";
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;
@@ -1921,6 +1921,9 @@ Insights:
1921
1921
  Measure → Reads: AI engines and people reading your sites, counted one way
1922
1922
  insights prompts [--period 14d|30d|90d] Measure → Prompt tracking: every prompt we ask, each engine's latest answer, share / change / cited
1923
1923
  insights keywords [topic] [--refresh] Measure → Keyword tracking: your keywords (searches, difficulty, intent, rank, tracked), or research a topic
1924
+ insights tracking-cadence Read prompt and keyword refresh schedules
1925
+ insights set-tracking-cadence --tracking prompts|keywords --days <n>
1926
+ Set the refresh interval in days
1924
1927
  insights add-keywords --cluster <id> --keyword <k> Add keywords to a keyword cluster (repeat --keyword or comma-separate)
1925
1928
  insights pages [--period 14d|30d|90d] [--site own|phantoms|<key>] Measure → Pages: your pages AI answers cited, won questions first
1926
1929
  insights page <page> [--period 14d|30d|90d] [--question <prompt-id>] [--filter all|won] [--limit n]
@@ -1936,7 +1939,7 @@ Insights:
1936
1939
  insights properties Search Console properties the connected Google account can read, the
1937
1940
  unverified ones, and the one tracked
1938
1941
  insights property <site-url> Pick the Search Console property to track (a key minted by an admin)
1939
- insights site [--period 14d|30d|90d] [--collection <uuid>]
1942
+ insights site [--period 14d|30d|90d] [--collection <uuid>] [--scope site|posts]
1940
1943
  insights post <article-id> [--period 14d|30d|90d]
1941
1944
  insights top [--period 14d|30d|90d] [--collection <uuid>] [--limit <n>] [--sort clicks|impressions]
1942
1945
  insights bank [--source phantoms|marketing|all] [--phantom <uuid>]... [--period 14d|30d|90d] [--answers <n>]
@@ -38,6 +38,11 @@ export const ARGS = {
38
38
  path: { flag: "path" },
39
39
  engine: { flag: "engine" },
40
40
  },
41
+ get_tracking_cadence: {},
42
+ set_tracking_cadence: {
43
+ tracking: { flag: "tracking", enum: ["prompts", "keywords"], required: true },
44
+ days: { flag: "days", type: "num", required: true },
45
+ },
41
46
  list_measure_questions: {
42
47
  period: { flag: "period", enum: PERIODS },
43
48
  },
@@ -118,6 +123,10 @@ export async function cmdInsights(ctx) {
118
123
  return call(rest, "get_brand_detection");
119
124
  case "reads":
120
125
  return call(rest, "get_reads");
126
+ case "tracking-cadence":
127
+ return call(rest, "get_tracking_cadence");
128
+ case "set-tracking-cadence":
129
+ return call(rest, "set_tracking_cadence");
121
130
  case "questions":
122
131
  case "prompts":
123
132
  return call(rest, "list_measure_questions");
@@ -145,14 +154,18 @@ export async function cmdInsights(ctx) {
145
154
  return call(rest, "select_gsc_property");
146
155
  default:
147
156
  throw new CliError(
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`
157
+ `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, activity, story, site, post, top, bank, access, properties, property`
149
158
  );
150
159
  }
151
160
  }
152
161
 
153
162
  async function insightsSite(ctx) {
154
163
  const { client, flags, io } = ctx;
155
- const args = compact({ period: flagStr(flags.period), collection_id: flagStr(flags.collection) });
164
+ const args = compact({
165
+ period: flagStr(flags.period),
166
+ collection_id: flagStr(flags.collection),
167
+ scope: flagStr(flags.scope),
168
+ });
156
169
  const result = await client.callTool("get_site_performance", args);
157
170
  printResult(io, flags, result);
158
171
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.133",
3
+ "version": "0.177.135",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",