@letterstory/cli 0.175.18 → 0.175.19
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 +4 -1
- package/lib/commands/bench.mjs +15 -1
- package/lib/documents.mjs +2 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
} from "./commands.mjs";
|
|
79
79
|
|
|
80
80
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
81
|
-
export const VERSION = "0.175.
|
|
81
|
+
export const VERSION = "0.175.19";
|
|
82
82
|
|
|
83
83
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
84
84
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -87,6 +87,8 @@ export const EXIT_PAYMENT_REQUIRED = 3;
|
|
|
87
87
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
88
88
|
// `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
|
|
89
89
|
export const BOOLEAN_FLAGS = new Set([
|
|
90
|
+
// bench update: remove the README's disclosure.
|
|
91
|
+
"no-disclosure",
|
|
90
92
|
// sim create / resample / sample-key: keep the customer's sample key, or delete it now.
|
|
91
93
|
"keep-key",
|
|
92
94
|
"delete-key",
|
|
@@ -1727,6 +1729,7 @@ Bench (Benches: open-source benchmarks on their own domains, kept running; @lett
|
|
|
1727
1729
|
The repo lives on your organization's GitHub
|
|
1728
1730
|
bench show <id> Spec, domain, repo, site, results, recent events
|
|
1729
1731
|
bench update <id> [--name <n>] [--slug <s>] [--repo-owner <o>] [--repo-name <r>] [--spec-file <path>] [--domain <d>] [--every <days>]
|
|
1732
|
+
[--disclosure "<text>"|--disclosure-file <path>|--no-disclosure] The README's optional ## Disclosure
|
|
1730
1733
|
bench pause <id> | bench resume <id> | bench archive <id>
|
|
1731
1734
|
bench advance <id> [--retry] Move it on now; --retry once blocked_on is done
|
|
1732
1735
|
bench run <id> [--note "<what else to do>"] Letterpress-1 runs the benchmark again
|
package/lib/commands/bench.mjs
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
// letterstory bench list
|
|
11
11
|
// letterstory bench show <id>
|
|
12
12
|
// letterstory bench update <id> [--name <n>] [--slug <s>] [--repo-owner <o>] [--repo-name <r>] [--spec-file spec.json] [--domain <d>] [--every <days>]
|
|
13
|
+
// [--disclosure "<README disclosure text>" | --no-disclosure]
|
|
13
14
|
// letterstory bench pause <id> | resume <id> | archive <id>
|
|
14
15
|
// letterstory bench advance <id> [--retry]
|
|
15
16
|
// letterstory bench run <id> [--note "add Qdrant as a contender"]
|
|
@@ -61,6 +62,14 @@ export const ARGS = {
|
|
|
61
62
|
spec: { value: specFromFile },
|
|
62
63
|
domain: "domain",
|
|
63
64
|
rerun_every_days: { flag: "every", type: "num" },
|
|
65
|
+
// The README's disclosure: text sets it, --no-disclosure removes it (the default is none).
|
|
66
|
+
disclosure: {
|
|
67
|
+
value: (flags) => {
|
|
68
|
+
if (flags["no-disclosure"] === true) return null;
|
|
69
|
+
const text = readTextInput(flags, "disclosure", "disclosure-file");
|
|
70
|
+
return text === undefined ? undefined : text;
|
|
71
|
+
},
|
|
72
|
+
},
|
|
64
73
|
status: { flag: "status", enum: ["live", "paused", "archived"] },
|
|
65
74
|
},
|
|
66
75
|
advance_bench: { bench_id: benchId, retry: { flag: "retry", type: "bool" } },
|
|
@@ -96,7 +105,12 @@ export async function cmdBench(ctx) {
|
|
|
96
105
|
case "show":
|
|
97
106
|
return benchShow(rest, await call(rest, "get_bench"));
|
|
98
107
|
case "update":
|
|
99
|
-
refuseUnknownFlags(rest, ARGS.update_bench, [
|
|
108
|
+
refuseUnknownFlags(rest, ARGS.update_bench, [
|
|
109
|
+
"spec-file",
|
|
110
|
+
"disclosure",
|
|
111
|
+
"disclosure-file",
|
|
112
|
+
"no-disclosure",
|
|
113
|
+
]);
|
|
100
114
|
return benchShow(rest, await call(rest, "update_bench"));
|
|
101
115
|
case "pause":
|
|
102
116
|
case "resume":
|
package/lib/documents.mjs
CHANGED
|
@@ -65,6 +65,8 @@ export const DOCUMENT_FLAG_PAIRS = [
|
|
|
65
65
|
["instructions", "instructions-file"],
|
|
66
66
|
// A bench's prompt (bench.mjs `bench create`): what the benchmark is and how it works, prose.
|
|
67
67
|
["prompt", "prompt-file"],
|
|
68
|
+
// A bench's README disclosure (bench.mjs `bench create|update --disclosure-file`): prose.
|
|
69
|
+
["disclosure", "disclosure-file"],
|
|
68
70
|
];
|
|
69
71
|
|
|
70
72
|
/**
|