@letterstory/cli 0.177.65 → 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 +9 -4
- package/lib/commands/admin.mjs +9 -1
- package/lib/commands/collection.mjs +1 -0
- package/lib/commands/models.mjs +4 -1
- package/package.json +1 -1
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.
|
|
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;
|
|
@@ -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 →
|
|
@@ -1149,10 +1151,11 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
|
|
|
1149
1151
|
nothing. Exits 1 if any row failed.
|
|
1150
1152
|
admin recipes save [<id>] [--file <recipe.json>] [--name …] [--description …] [--recipe …]
|
|
1151
1153
|
[--when-to-use …] [--when-not-to-use …] [--weight 1..10] [--approaches seo,geo]
|
|
1152
|
-
[--reads llms_txt,github]
|
|
1154
|
+
[--reads llms_txt,github] [--read-pages /compare/*,/docs/**/quickstart*]
|
|
1153
1155
|
Create one (no id) or change one; variations come from
|
|
1154
1156
|
--file. --reads names the facts its conditions rest on
|
|
1155
|
-
(vocab lists them)
|
|
1157
|
+
(vocab lists them); --read-pages the site's pages the fit
|
|
1158
|
+
reads before deciding it. Needs recipes:write.
|
|
1156
1159
|
admin recipes delete <id> --yes Delete for good.
|
|
1157
1160
|
admin recipes refit [--org <id>,…] [--recipe <id|name>] [--limit 10]
|
|
1158
1161
|
Decide accounts' recipes again now, not on the hourly
|
|
@@ -2162,7 +2165,9 @@ Models (your own writing models, each trained on writing you give it so it write
|
|
|
2162
2165
|
models compare <id> "<source text>" Compare your model, Astra and Claude + Skill
|
|
2163
2166
|
models write <id> "<what to write>" [--words <n>] Legacy ask-based generation
|
|
2164
2167
|
models update <id> [--name <n>] [--budget <usd>] [--description <d>] [--base <base-id>] [--handle <h>] [--on] [--off]
|
|
2168
|
+
[--writes-posts] [--no-writes-posts]
|
|
2165
2169
|
--on: Letterpress may write with it where its description fits
|
|
2170
|
+
--writes-posts: it writes the organization's posts (one model; it must be on)
|
|
2166
2171
|
models archive <id> | models restore <id>
|
|
2167
2172
|
|
|
2168
2173
|
Bench (Benches: open-source benchmarks on their own domains, kept running; @letterstory.com only):
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -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
|
|
|
@@ -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"] },
|
package/lib/commands/models.mjs
CHANGED
|
@@ -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":
|