@letterstory/cli 0.33.10 → 0.33.11

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
@@ -45,7 +45,7 @@ import {
45
45
  } from "./commands.mjs";
46
46
 
47
47
  // Keep in sync with cli/package.json.
48
- export const VERSION = "0.33.10";
48
+ export const VERSION = "0.33.11";
49
49
 
50
50
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
51
51
  // can't accidentally swallow the id as --json's value.
@@ -278,7 +278,7 @@ Strategy & onboarding:
278
278
  strategy company get | set [--name] [--domain] [--market <cc>] [--manifesto <text>|--manifesto-file <path>]
279
279
  strategy positioning get | set [--topic <t> …] [--stance <s> …] [--avoid <t> …]
280
280
  [--clear-topics] [--clear-stances] [--clear-avoid]
281
- strategy competitors list | add <name> <domain>
281
+ strategy competitors list | add <name> <domain> | topics topics = every tracked competitor's articles, ranked
282
282
  strategy sitemap --collection <uuid> --url <sitemap_url> [--sub <url> …] [--pattern <glob>] [--posts-only]
283
283
  strategy topics list --collection <uuid> List the topic map's clusters/spokes
284
284
  strategy topics set --collection <uuid> (--topic <topic-id> | --suggestion <suggestion-id>)
@@ -46,6 +46,7 @@ export const ARGS = {
46
46
  name: { positional: 0, label: "name", required: true },
47
47
  domain: { positional: 1, label: "domain", required: true },
48
48
  },
49
+ list_competitor_topics: {},
49
50
  import_sitemap: {
50
51
  collection_id: { flag: "collection", required: true },
51
52
  sitemap_url: { flag: "url", required: true },
@@ -173,8 +174,10 @@ async function strategyCompetitors(ctx) {
173
174
  return competitorsList(rest);
174
175
  case "add":
175
176
  return competitorsAdd(rest);
177
+ case "topics":
178
+ return competitorsTopics(rest);
176
179
  default:
177
- throw new CliError(`Unknown strategy competitors subcommand: ${sub ?? "(none)"}. Try: list, add`);
180
+ throw new CliError(`Unknown strategy competitors subcommand: ${sub ?? "(none)"}. Try: list, add, topics`);
178
181
  }
179
182
  }
180
183
 
@@ -194,6 +197,17 @@ async function competitorsAdd(ctx) {
194
197
  return 0;
195
198
  }
196
199
 
200
+ // Every tracked competitor's articles in one ranked feed — the CLI/agent
201
+ // equivalent of the Topics tab's "What they publish" card (list_competitor_topics
202
+ // on the registry). For one specific competitor's full history, scrape it first
203
+ // via the API/MCP `scrape_competitor` / `get_competitor_topics` tools.
204
+ async function competitorsTopics(ctx) {
205
+ const { client, flags, io } = ctx;
206
+ const result = await client.callTool("list_competitor_topics", {});
207
+ printResult(io, flags, result);
208
+ return 0;
209
+ }
210
+
197
211
  // -- sitemap -------------------------------------------------------------
198
212
 
199
213
  async function strategySitemap(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.33.10",
3
+ "version": "0.33.11",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",