@letterstory/cli 0.177.66 → 0.177.67

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
@@ -90,7 +90,7 @@ import {
90
90
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
91
91
 
92
92
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
93
- export const VERSION = "0.177.66";
93
+ export const VERSION = "0.177.67";
94
94
 
95
95
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
96
96
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -1151,10 +1151,11 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
1151
1151
  nothing. Exits 1 if any row failed.
1152
1152
  admin recipes save [<id>] [--file <recipe.json>] [--name …] [--description …] [--recipe …]
1153
1153
  [--when-to-use …] [--when-not-to-use …] [--weight 1..10] [--approaches seo,geo]
1154
- [--reads llms_txt,github]
1154
+ [--reads llms_txt,github] [--read-pages /compare/*,/docs/**/quickstart*]
1155
1155
  Create one (no id) or change one; variations come from
1156
1156
  --file. --reads names the facts its conditions rest on
1157
- (vocab lists them). Needs recipes:write.
1157
+ (vocab lists them); --read-pages the site's pages the fit
1158
+ reads before deciding it. Needs recipes:write.
1158
1159
  admin recipes delete <id> --yes Delete for good.
1159
1160
  admin recipes refit [--org <id>,…] [--recipe <id|name>] [--limit 10]
1160
1161
  Decide accounts' recipes again now, not on the hourly
@@ -5181,6 +5181,8 @@ const RECIPE_FILE_FIELDS = [
5181
5181
  "names_subject",
5182
5182
  // A row per thing the account has, not one (2026-11-13); left out here, an export would drop it.
5183
5183
  "repeats",
5184
+ // The site's pages the fit reads before deciding it (2026-11-16); left out here, an export would drop it.
5185
+ "read_pages",
5184
5186
  // Where its row shows: ideas or fix (a deficit, 2026-11-13); left out here, an export would drop it.
5185
5187
  "shows_in",
5186
5188
  "status",
@@ -5188,7 +5190,7 @@ const RECIPE_FILE_FIELDS = [
5188
5190
  "variations",
5189
5191
  ];
5190
5192
  const RECIPES_USAGE =
5191
- "Usage: admin recipes list [--kind recipe|known_issue] [--status live|parked] [--approach seo|geo|agent_conviction|inbound_conversion|outbound|other] | show <id|name> | runs <id|name> [--days 1..90] [--limit n] | vocab | stats | export [--out <file>] | import <file> [--dry-run] | refit [--org <id>,…] [--recipe <id|name>] [--limit n] | save [<id>] [--file <recipe.json>] [--kind recipe|known_issue] [--name …] [--description …] [--recipe …] [--when-to-use …] [--when-not-to-use …] [--weight 1..10] [--approaches seo,geo,…] [--reads llms_txt,github,…] [--runs <catalog action id>] [--primitives-access true|false] [--immediate true|false] [--names-subject true|false] [--repeats true|false] [--shows-in ideas|fix] [--status live|parked] [--needs <what a parked recipe is missing>] | delete <id> --yes";
5193
+ "Usage: admin recipes list [--kind recipe|known_issue] [--status live|parked] [--approach seo|geo|agent_conviction|inbound_conversion|outbound|other] | show <id|name> | runs <id|name> [--days 1..90] [--limit n] | vocab | stats | export [--out <file>] | import <file> [--dry-run] | refit [--org <id>,…] [--recipe <id|name>] [--limit n] | save [<id>] [--file <recipe.json>] [--kind recipe|known_issue] [--name …] [--description …] [--recipe …] [--when-to-use …] [--when-not-to-use …] [--weight 1..10] [--approaches seo,geo,…] [--reads llms_txt,github,…] [--runs <catalog action id>] [--primitives-access true|false] [--immediate true|false] [--names-subject true|false] [--repeats true|false] [--read-pages /compare/*,/docs/**/quickstart*] [--shows-in ideas|fix] [--status live|parked] [--needs <what a parked recipe is missing>] | delete <id> --yes";
5192
5194
 
5193
5195
  const recipeForFile = (r) => Object.fromEntries(RECIPE_FILE_FIELDS.map((k) => [k, r[k]]));
5194
5196
 
@@ -5240,6 +5242,7 @@ function recipeDetail(r) {
5240
5242
  : []),
5241
5243
  ...(r.names_subject ? [" title: names what it acts on, or it is a no (names_subject)"] : []),
5242
5244
  ...(r.repeats ? [" rows: one per thing the account has, up to 4 (repeats)"] : []),
5245
+ ...(r.read_pages?.length ? [` reads pages: ${r.read_pages.join(", ")} (read_pages)`] : []),
5243
5246
  ...(r.shows_in === "fix" ? [" shows in: Fix, as a deficit (shows_in)"] : []),
5244
5247
  ...(variations.length > 1
5245
5248
  ? variations.flatMap((v, i) => [` variation ${i + 1}: ${v.name}`, ...fields(v, " ")])
@@ -5306,6 +5309,11 @@ function recipeFromFlags(flags) {
5306
5309
  ?.split(",")
5307
5310
  .map((k) => k.trim())
5308
5311
  .filter(Boolean),
5312
+ // --read-pages /compare/*,/docs/**/quickstart*: the site's pages the fit reads before deciding it; "" clears them.
5313
+ read_pages: flagStr(flags["read-pages"])
5314
+ ?.split(",")
5315
+ .map((k) => k.trim())
5316
+ .filter(Boolean),
5309
5317
  });
5310
5318
  }
5311
5319
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.66",
3
+ "version": "0.177.67",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",