@letterstory/cli 0.177.35 → 0.177.37

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
@@ -88,7 +88,7 @@ import {
88
88
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
89
89
 
90
90
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
91
- export const VERSION = "0.177.35";
91
+ export const VERSION = "0.177.37";
92
92
 
93
93
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
94
94
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -2102,7 +2102,7 @@ Models (your own writing models, each trained on writing you give it so it write
2102
2102
  models train <id> [--retry] Train the next version, or try a stopped one again
2103
2103
  models stop <id> Stop what is training; what it spent is charged
2104
2104
  models rewrite <id> "<source text>" Rewrite supplied prose in its trained voice
2105
- models compare <id> "<source text>" Compare the model with Claude and GPT using examples
2105
+ models compare <id> "<source text>" Compare your model, Astra and Claude + Skill
2106
2106
  models write <id> "<what to write>" [--words <n>] Legacy ask-based generation
2107
2107
  models update <id> [--name <n>] [--budget <usd>] [--description <d>]
2108
2108
  models archive <id> | models restore <id>
@@ -246,8 +246,11 @@ export async function cmdModels(ctx) {
246
246
  printResult(next.io, next.flags, result, (r) =>
247
247
  sub === "rewrite"
248
248
  ? r.text
249
- : Object.entries(r.outputs)
250
- .map(([name, out]) => `${name}:\n${out.text ?? out.error}`)
249
+ : ["custom", "astra", "claude"]
250
+ .map(
251
+ (name) =>
252
+ `${name}:\n${r.outputs[name]?.text ?? r.outputs[name]?.error ?? "Unavailable"}`
253
+ )
251
254
  .join("\n\n")
252
255
  );
253
256
  return 0;
@@ -5,7 +5,7 @@
5
5
  //
6
6
  // letterstory vary list [--status running]
7
7
  // letterstory vary create --page https://acme.com/pricing [--name "Pricing headline"] [--goals-file goals.json]
8
- // letterstory vary launch [--brief "Test the hero button"] [--page https://acme.com/] [--name <n>]
8
+ // letterstory vary launch [--brief "Test the hero button"] [--page https://acme.com/] [--name <n>] [--draft]
9
9
  // made, given a challenger Letter writes from the page, and started (Ideas' A/B test row)
10
10
  // letterstory vary get <id>
11
11
  // letterstory vary page <id> the page's blocks, as a change's tag/before/occurrence
@@ -84,6 +84,8 @@ export const ARGS = {
84
84
  page_url: "page",
85
85
  site_id: "site",
86
86
  name: "name",
87
+ // --draft: make the test and its challenger, leave it for a person to start (start false).
88
+ start: { flag: "start", type: "bool", negate: "draft" },
87
89
  },
88
90
  ship_variational_winner: {
89
91
  variational_id: variationalId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.35",
3
+ "version": "0.177.37",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",