@letterstory/cli 0.18.0 → 0.19.0

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
@@ -44,7 +44,7 @@ import {
44
44
  } from "./commands.mjs";
45
45
 
46
46
  // Keep in sync with cli/package.json.
47
- export const VERSION = "0.18.0";
47
+ export const VERSION = "0.19.0";
48
48
 
49
49
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
50
50
  // can't accidentally swallow the id as --json's value.
@@ -453,6 +453,11 @@ Shredder (diversify content produced outside Letterstory; structure preserved):
453
453
  standard (default) keeps the piece's own terminology;
454
454
  high rewrites more and may reword recurring terms;
455
455
  max rewrites hardest — expect vocabulary drift
456
+ [--apply-rules]
457
+ hold every rewrite to the publication's writing rules —
458
+ the shred runs last, so it is the one stage that can put
459
+ back what the rules remove; costs attempts, and a sentence
460
+ with no clean rewrite keeps its original
456
461
  [--no-wait] queue it and print the job id, don't follow it
457
462
  [--sync] wait inside one request (only for a few
458
463
  sentences — anything longer is cut off)
@@ -107,6 +107,9 @@ async function shredderRun(ctx) {
107
107
  attempts_per_unit: flagNum(flags.attempts),
108
108
  // How hard to rewrite. Validated service-side; sent only when the caller asked.
109
109
  ...(flags.aggression ? { aggression: String(flags.aggression) } : {}),
110
+ // Hold every rewrite to the live writing rules. A trade, not a free win: refused rewrites
111
+ // cost provider attempts and a sentence with no clean rewrite keeps its original.
112
+ ...(flags["apply-rules"] === true ? { apply_rules: true } : {}),
110
113
  ...(sync ? {} : { async: true }),
111
114
  });
112
115
  const result = await client.callTool("run_shred", args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",