@letterstory/cli 0.33.9 → 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/README.md CHANGED
@@ -80,7 +80,8 @@ refresh automatically. Run `letterstory logout` to revoke the session and forget
80
80
  **Or use a static API key** (for CI/automation, or when you want scoped-down access):
81
81
 
82
82
  You need a Letterstory API key (starts with `ls_`; legacy `lb_` keys still work) with the `phantom:read` and
83
- `phantom:write` capabilities — mint one in the app under **Settings → API keys**.
83
+ `phantom:write` capabilities — mint one in the app under **Settings → API keys**
84
+ (<https://app.letterstory.com/settings?tab=api-keys>).
84
85
  Add `phantom:domain` too if you plan to buy custom domains.
85
86
 
86
87
  ```bash
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.9";
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>)
@@ -110,6 +110,10 @@ export const ARGS = {
110
110
  kernel_id: "kernel",
111
111
  target_word_count: { flag: "words", type: "num" },
112
112
  target_word_tolerance: { flag: "words-tolerance", type: "num" },
113
+ // Write into an article instead of handing the text back (2026-09-27): the one call that
114
+ // replaces `kernel submit`. With `--article` and no input, the article's own content is
115
+ // the input.
116
+ article_id: { flag: "article" },
113
117
  label: "label",
114
118
  // The flag is --read-as, which is what shipped; an earlier draft called it --brief-mode.
115
119
  content_kind: {
@@ -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.9",
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",