@letterstory/cli 0.176.10 → 0.176.12
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 -4
- package/lib/commands/repo.mjs +12 -0
- package/lib/commands/vary.mjs +1 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
81
81
|
|
|
82
82
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
83
|
-
export const VERSION = "0.176.
|
|
83
|
+
export const VERSION = "0.176.12";
|
|
84
84
|
|
|
85
85
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
86
86
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -89,6 +89,8 @@ export const EXIT_PAYMENT_REQUIRED = 3;
|
|
|
89
89
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
90
90
|
// `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
|
|
91
91
|
export const BOOLEAN_FLAGS = new Set([
|
|
92
|
+
// vary start: pause the test running on the page first.
|
|
93
|
+
"pause-running",
|
|
92
94
|
// bench run: the spec was just changed.
|
|
93
95
|
"spec-changed",
|
|
94
96
|
// bench update: remove the README's disclosure.
|
|
@@ -1708,7 +1710,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letter GitHub App op
|
|
|
1708
1710
|
automate add --template … --slack-channel <C…>
|
|
1709
1711
|
repo slack-targets Slack channels and people Send to Slack can use, with ids
|
|
1710
1712
|
repo slack-test Post a test into the Send to Slack channel
|
|
1711
|
-
repo start --repo <owner/name> [--gitlab] --instructions <text>|--instructions-file <path|->
|
|
1713
|
+
repo start --repo <owner/name> [--gitlab] --instructions <text>|--instructions-file <path|-> [--page <path>]...
|
|
1712
1714
|
[--branch <base>] [--attach <path>]... [--attach-url <name>=<https url>]...
|
|
1713
1715
|
[--attach-ref <path>]... [--attach-url-ref <name>=<https url>]...
|
|
1714
1716
|
[--action build|build_pr|build_merge|slack|linear] [--with-preview]
|
|
@@ -1785,7 +1787,7 @@ Sim (Simulations: a free, simulated copy of your API for agents, and what they d
|
|
|
1785
1787
|
sim session <session-id> One session, call by call
|
|
1786
1788
|
sim report <id> [--since 30d] Funnel, missing operations, argument errors, loops, by agent
|
|
1787
1789
|
|
|
1788
|
-
Vary (
|
|
1790
|
+
Vary (A/B tests of a page's words and images on your own site):
|
|
1789
1791
|
vary [list] [--status running] [--site <id>] Your variationals and how many visitors each has seen
|
|
1790
1792
|
vary create --page <url> [--name <n>] [--goals-file <path>]
|
|
1791
1793
|
vary get <id> Variants, their changes, and the results against the original
|
|
@@ -1793,7 +1795,7 @@ Vary (Variationals: A/B tests of a page's words and images on your own site):
|
|
|
1793
1795
|
vary save-variant <id> --deltas-file <path> [--key b] [--name <n>]
|
|
1794
1796
|
vary weights <id> a=50,b=50 How visitors are split (whole percent, adding to 100)
|
|
1795
1797
|
vary goals <id> --goals-file <path> What counts as a conversion (the first is primary)
|
|
1796
|
-
vary start <id> | vary pause <id> | vary end <id> [--winner b]
|
|
1798
|
+
vary start <id> [--pause-running] | vary pause <id> | vary end <id> [--winner b]
|
|
1797
1799
|
vary remove-variant <id> <key> | vary delete <id>
|
|
1798
1800
|
|
|
1799
1801
|
Bench (Benches: open-source benchmarks on their own domains, kept running; @letterstory.com only):
|
package/lib/commands/repo.mjs
CHANGED
|
@@ -92,6 +92,17 @@ const ARGS = {
|
|
|
92
92
|
harness: { flag: "harness", enum: ["claude-code", "letterpress-1", "codex"] },
|
|
93
93
|
// --again: start it even when an open change already asks for the same thing.
|
|
94
94
|
again: { flag: "again", type: "bool" },
|
|
95
|
+
// --page <path>, repeatable or comma-separated: the pages the change is about ("/pricing"), so another change
|
|
96
|
+
// about the same pages is noticed before a sandbox starts.
|
|
97
|
+
pages: {
|
|
98
|
+
value: (flags) => {
|
|
99
|
+
const pages = flagList(flags.page)
|
|
100
|
+
.flatMap((v) => v.split(","))
|
|
101
|
+
.map((v) => v.trim())
|
|
102
|
+
.filter(Boolean);
|
|
103
|
+
return pages.length ? pages : undefined;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
95
106
|
// --verifier / --no-verifier: review the change before it goes out; omitted, the deployment's choice.
|
|
96
107
|
verifier: { value: (flags) => (flags["no-verifier"] ? false : flags.verifier ? true : undefined) },
|
|
97
108
|
},
|
|
@@ -438,6 +449,7 @@ async function repoStart(ctx) {
|
|
|
438
449
|
"harness",
|
|
439
450
|
"verifier",
|
|
440
451
|
"no-verifier",
|
|
452
|
+
"page",
|
|
441
453
|
"wait",
|
|
442
454
|
]);
|
|
443
455
|
// One upload for every file (names must be unique across both), then the references marked.
|
package/lib/commands/vary.mjs
CHANGED
|
@@ -85,6 +85,7 @@ export const ARGS = {
|
|
|
85
85
|
weights: weightsArg(),
|
|
86
86
|
status: { flag: "status", enum: ["running", "paused", "ended"] },
|
|
87
87
|
winner: "winner",
|
|
88
|
+
pause_running: { flag: "pause-running", type: "bool" },
|
|
88
89
|
},
|
|
89
90
|
save_variational_variant: {
|
|
90
91
|
variational_id: variationalId,
|