@letterstory/cli 0.177.65 → 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 +6 -2
- 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.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 →
|
|
@@ -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"] },
|
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":
|