@letterstory/cli 0.177.134 → 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/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.134";
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]
@@ -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,7 +154,7 @@ 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.134",
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",