@letterstory/cli 0.177.133 → 0.177.134

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.134";
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;
@@ -1936,7 +1936,7 @@ Insights:
1936
1936
  insights properties Search Console properties the connected Google account can read, the
1937
1937
  unverified ones, and the one tracked
1938
1938
  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>]
1939
+ insights site [--period 14d|30d|90d] [--collection <uuid>] [--scope site|posts]
1940
1940
  insights post <article-id> [--period 14d|30d|90d]
1941
1941
  insights top [--period 14d|30d|90d] [--collection <uuid>] [--limit <n>] [--sort clicks|impressions]
1942
1942
  insights bank [--source phantoms|marketing|all] [--phantom <uuid>]... [--period 14d|30d|90d] [--answers <n>]
@@ -152,7 +152,11 @@ export async function cmdInsights(ctx) {
152
152
 
153
153
  async function insightsSite(ctx) {
154
154
  const { client, flags, io } = ctx;
155
- const args = compact({ period: flagStr(flags.period), collection_id: flagStr(flags.collection) });
155
+ const args = compact({
156
+ period: flagStr(flags.period),
157
+ collection_id: flagStr(flags.collection),
158
+ scope: flagStr(flags.scope),
159
+ });
156
160
  const result = await client.callTool("get_site_performance", args);
157
161
  printResult(io, flags, result);
158
162
  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.134",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",