@letterstory/cli 0.17.0 → 0.18.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.17.0";
47
+ export const VERSION = "0.18.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.
@@ -300,6 +300,9 @@ Writing kernels (kernels write the draft; they do not research — run research
300
300
  kernel endpoints Your kernel endpoints
301
301
  kernel write <endpoint-id> (--body <text>|--file <path>|--file -)
302
302
  [--kernel <uuid>] [--words <n>] [--no-wait]
303
+ [--shredder <uuid>] shred every round in the loop, so the
304
+ kernel judges the text that ships
305
+ [--read-as brief|blog|outline|research|notes]
303
306
  WRITE a new article from a headline,
304
307
  outline, notes or a finished post.
305
308
  Follows the run unless --no-wait.
@@ -117,6 +117,11 @@ async function kernelWrite(ctx) {
117
117
  kernel_id: flagStr(flags.kernel),
118
118
  target_word_count: flags.words === undefined ? undefined : Number(flags.words),
119
119
  content_type: flagStr(flags["content-type"]),
120
+ // The two products, in one run: every round is shredded before the kernel's jury sees
121
+ // it, so the verdict lands on the text that actually ships. Costs a shred as well as a
122
+ // run. Reachable from every other surface and, until now, not from here.
123
+ shredder_endpoint_id: flagStr(flags.shredder),
124
+ brief_mode: flagStr(flags["read-as"]),
120
125
  });
121
126
  const result = await client.callTool("run_kernel", args);
122
127
  const runId = readToolField(result, "run_id");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",