@letterstory/cli 0.95.0 → 0.96.0
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 +1 -1
- package/lib/commands/admin.mjs +5 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
} from "./commands.mjs";
|
|
59
59
|
|
|
60
60
|
// Keep in sync with cli/package.json.
|
|
61
|
-
export const VERSION = "0.
|
|
61
|
+
export const VERSION = "0.96.0";
|
|
62
62
|
|
|
63
63
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
64
64
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -639,6 +639,8 @@ async function cmdAdminTuningContext(ctx) {
|
|
|
639
639
|
* admin tuning arenas | arena <version-id> our arena's versions / one version's file and diff
|
|
640
640
|
* admin tuning arena-candidate --patch '{…}' | --file f.json [--of <version-id>] [--note "…"] save a candidate
|
|
641
641
|
* admin tuning research-compare --title "…" (--candidate <version-id> | --patch '{…}' | --null-check) [--keys …]
|
|
642
|
+
* admin tuning research-compare … --write Hazel write every arm into an article with one kernel
|
|
643
|
+
* (live version, pinned): the arena the only difference, read with Write's measures and blind
|
|
642
644
|
* admin tuning research-compare --title "…" --candidates <version-id>,… | --patches '[{…},{…}]' several
|
|
643
645
|
* candidates against ONE control arm (k + 1 runs per input, not 2k)
|
|
644
646
|
* admin tuning arena-dials every arena setting: help, default, evidence, live's value
|
|
@@ -1995,7 +1997,7 @@ async function cmdAdminTuning(ctx) {
|
|
|
1995
1997
|
].filter(Boolean).length;
|
|
1996
1998
|
if (!title || named !== 1)
|
|
1997
1999
|
throw new CliError(
|
|
1998
|
-
"Usage: admin tuning research-compare --title \"…\" (--candidate <version-id> | --patch '{…}' | --null-check | --candidates <id>,… [--patches '[{…},…]']) [--keys k1,k2] [--concurrency 6] [--experiment <id>]"
|
|
2000
|
+
"Usage: admin tuning research-compare --title \"…\" (--candidate <version-id> | --patch '{…}' | --null-check | --candidates <id>,… [--patches '[{…},…]']) [--write Hazel] [--keys k1,k2] [--concurrency 6] [--experiment <id>]"
|
|
1999
2001
|
);
|
|
2000
2002
|
const several =
|
|
2001
2003
|
versionIds?.length || patches?.length
|
|
@@ -2020,6 +2022,8 @@ async function cmdAdminTuning(ctx) {
|
|
|
2020
2022
|
title,
|
|
2021
2023
|
candidate,
|
|
2022
2024
|
candidates: several,
|
|
2025
|
+
// The kernel that writes every arm into a finished article (the arena the only difference).
|
|
2026
|
+
write: flagStr(flags.write) ? { kernel: flagStr(flags.write) } : undefined,
|
|
2023
2027
|
keys: flagList(flags.keys),
|
|
2024
2028
|
concurrency: flagNum(flags.concurrency),
|
|
2025
2029
|
experiment_id: flagStr(flags.experiment),
|