@letterstory/cli 0.177.64 → 0.177.66

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.64";
93
+ export const VERSION = "0.177.66";
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;
@@ -479,6 +479,8 @@ export const BOOLEAN_FLAGS = new Set([
479
479
  // models update: turn a model on or off for Letterpress. models train: price the run, start nothing.
480
480
  "on",
481
481
  "off",
482
+ "writes-posts",
483
+ "no-writes-posts",
482
484
  "dry-run",
483
485
  // usage case-study generate --named: name the companies (counts only without it).
484
486
  "named",
@@ -614,7 +616,7 @@ Collections (the content engine as a primitive — one door, 'collection run'):
614
616
  publishing, targets, measurement) — or PATCH it
615
617
  collection run --collection <id> [--topic <t> | --spoke <topic-id> | --headline <suggestion-id>]
616
618
  [--source <url> …] [--notes <text>] [--must-include <t> …] [--depth barebones|fleshed_out]
617
- [--kernel <id>] [--no-verify] [--shred] [--mention off|subtle|woven]
619
+ [--kernel <id> | --model <handle>] [--no-verify] [--shred] [--mention off|subtle|woven]
618
620
  [--approval autopilot|review_window|manual] [--no-publish] [--no-rebuild]
619
621
  [--at <iso-datetime>] [--no-wait]
620
622
  Produce ONE post: source → write → gate →
@@ -1382,12 +1384,12 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
1382
1384
  bounced, marked as spam or failed). Read only.
1383
1385
  Needs spend:read.
1384
1386
  admin billing lago catalog [--apply] [--include-drafts]
1385
- | provision <org-id> --plan starter|growth|scale [--ratio 1|2|4|8 (8 needs --why "…")] [--complimentary N] [--stripe-customer cus_…] [--start ISO] [--review D]
1387
+ | provision <org-id> --plan base|starter|growth|scale|enterprise [--ratio 1|2|4|8 (8 needs --why "…")] [--complimentary N] [--stripe-customer cus_…] [--start ISO] [--review D]
1386
1388
  | reconcile [--org <org-id>] | forward
1387
1389
  | payments [--org <org-id>] [--open] | payments retry <lago-invoice-id> | payments run [--dry]
1388
1390
  | signups [--status open|card_saved|provisioned|paid|abandoned|canceled]
1389
1391
  | cap <org-id> <dollars|off> [--why "…"] | cancel <org-id> --why "…" --yes
1390
- | move <org-id> --plan starter|growth|scale [--ratio N [--why "…"]] [--reason "…"] [--stripe-subscription sub_…] [--now] [--dry]
1392
+ | move <org-id> --plan base|starter|growth|scale|enterprise [--ratio N [--why "…"]] [--reason "…"] [--stripe-subscription sub_…] [--now] [--dry]
1391
1393
  | changes [--org <org-id>] | changes cancel <org-id>
1392
1394
  Usage billing on Lago: the plan catalog, an org's
1393
1395
  plan and gifted ratio, Lago's tokens against ours,
@@ -2162,7 +2164,9 @@ Models (your own writing models, each trained on writing you give it so it write
2162
2164
  models compare <id> "<source text>" Compare your model, Astra and Claude + Skill
2163
2165
  models write <id> "<what to write>" [--words <n>] Legacy ask-based generation
2164
2166
  models update <id> [--name <n>] [--budget <usd>] [--description <d>] [--base <base-id>] [--handle <h>] [--on] [--off]
2167
+ [--writes-posts] [--no-writes-posts]
2165
2168
  --on: Letterpress may write with it where its description fits
2169
+ --writes-posts: it writes the organization's posts (one model; it must be on)
2166
2170
  models archive <id> | models restore <id>
2167
2171
 
2168
2172
  Bench (Benches: open-source benchmarks on their own domains, kept running; @letterstory.com only):
@@ -80,6 +80,7 @@ export const ARGS = {
80
80
  must_include: { flag: "must-include", type: "list" },
81
81
  research_depth: { flag: "depth", enum: ["barebones", "fleshed_out"] },
82
82
  kernel_id: { flag: "kernel" },
83
+ writing_model: { flag: "model" },
83
84
  verify: { flag: "no-verify", type: "bool", invert: true },
84
85
  shred: { flag: "shred", type: "bool" },
85
86
  mention_degree: { flag: "mention", enum: ["off", "subtle", "woven"] },
@@ -56,6 +56,9 @@ export const ARGS = {
56
56
  base_model: "base",
57
57
  handle: "handle",
58
58
  on: { value: (flags) => (flags.on ? true : flags.off ? false : undefined) },
59
+ writes_posts: {
60
+ value: (flags) => (flags["writes-posts"] ? true : flags["no-writes-posts"] ? false : undefined),
61
+ },
59
62
  archived: { internal: "models archive / models restore" },
60
63
  },
61
64
  add_writing_model_links: {
@@ -362,7 +365,7 @@ export async function cmdModels(ctx) {
362
365
  return 0;
363
366
  }
364
367
  case "update":
365
- refuseUnknownFlags(next, ARGS.update_writing_model, ["on", "off"]);
368
+ refuseUnknownFlags(next, ARGS.update_writing_model, ["on", "off", "writes-posts", "no-writes-posts"]);
366
369
  return modelShow(next, await call(next, "update_writing_model"));
367
370
  case "archive":
368
371
  case "restore":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.64",
3
+ "version": "0.177.66",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",