@letterstory/cli 0.128.1 → 0.128.2
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 +2 -2
- package/lib/commands/admin.mjs +2 -1
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
} from "./commands.mjs";
|
|
63
63
|
|
|
64
64
|
// Keep in sync with cli/package.json.
|
|
65
|
-
export const VERSION = "0.128.
|
|
65
|
+
export const VERSION = "0.128.2";
|
|
66
66
|
|
|
67
67
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
68
68
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
@@ -883,7 +883,7 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
|
|
|
883
883
|
session (a trial per arm), linked to its
|
|
884
884
|
ledger entry. Written by \`npm run lab --
|
|
885
885
|
publish\` in the kernels repo.
|
|
886
|
-
admin models runs [--model M] [--starred] | run <id> | star|unstar <id> | scoreboard --model M
|
|
886
|
+
admin models runs [--search T] [--model M] [--starred] | run <id> | star|unstar <id> | scoreboard --model M
|
|
887
887
|
The model hub's saved runs and blind arena (models.letter.dev)
|
|
888
888
|
admin spend summary [--range day|week|month|year | --from D --to D] [--grain day|week|month]
|
|
889
889
|
| reconcile [--from D --to D] | pnl [--range day|week|month|year | --from D --to D]
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -4005,7 +4005,7 @@ function spendEntryFromFlags(flags) {
|
|
|
4005
4005
|
|
|
4006
4006
|
const MODELS = "/api/superadmin/models";
|
|
4007
4007
|
const MODELS_USAGE =
|
|
4008
|
-
"Usage: admin models runs [--model ballpoint-1] [--starred] [--limit N] | run <id> | star <id> | unstar <id> | scoreboard --model ballpoint-1";
|
|
4008
|
+
"Usage: admin models runs [--search TEXT] [--model ballpoint-1] [--starred] [--limit N] | run <id> | star <id> | unstar <id> | scoreboard --model ballpoint-1";
|
|
4009
4009
|
|
|
4010
4010
|
/** The model hub's saved runs and blind arena (models.letter.dev), same functions as its pages. */
|
|
4011
4011
|
async function cmdAdminModels(ctx) {
|
|
@@ -4015,6 +4015,7 @@ async function cmdAdminModels(ctx) {
|
|
|
4015
4015
|
case "runs": {
|
|
4016
4016
|
const params = new URLSearchParams(
|
|
4017
4017
|
compact({
|
|
4018
|
+
q: flagStr(flags.search),
|
|
4018
4019
|
model: flagStr(flags.model),
|
|
4019
4020
|
starred: flagBool(flags.starred) ? "true" : undefined,
|
|
4020
4021
|
limit: flagNum(flags.limit)?.toString(),
|