@letterstory/cli 0.176.11 → 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 +5 -3
- 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.
|
|
@@ -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/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,
|