@letterstory/cli 0.177.91 → 0.177.92
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 -2
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
91
91
|
|
|
92
92
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
93
|
-
export const VERSION = "0.177.
|
|
93
|
+
export const VERSION = "0.177.92";
|
|
94
94
|
|
|
95
95
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
96
96
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -5326,7 +5326,7 @@ const BUILD_FAILURES = "/api/superadmin/build-failures";
|
|
|
5326
5326
|
const SUGGESTION_REVIEW = "/api/superadmin/suggestion-review";
|
|
5327
5327
|
const TURN_ENDINGS = "/api/superadmin/turn-endings";
|
|
5328
5328
|
const ENGINE_USAGE =
|
|
5329
|
-
"Usage: admin letterpress status | gaps | friction [--kind error|exception|rage|step|server|stall|background] [--surface s] [--org id] [--limit N] | issues [--days N] [--state came_back|open|fixing|resolved] [--source ask|friction] [--surface s] [--whose ours|agent|setup] [--limit N] | issues fix|unfix <key> [--pr url] [--note …] | tools [--days N] [--org id] [--customers] | checks | frustration [--days N] | health | asks [--days N] [--surface cmd_l|build_chat|slack|terminal|app|signup|letter] [--people | --letter] [--door d] [--whose ours|agent|setup|member] [--pattern <code or key>] [--org id] [--limit N] [--customers] | telemetry [--days N] [--harness h] [--customers] | tokens [--days N] [--so-far] [--all-orgs] | prs [--days N | --from YYYY-MM-DD [--to YYYY-MM-DD] | --all-time] [--day YYYY-MM-DD] [--org id] [--state merged|open|closed] [--top N] [--tz zone] [--all-orgs] | failures [--days N | --from YYYY-MM-DD [--to YYYY-MM-DD] | --all-time] [--day YYYY-MM-DD] [--org id] [--failure ours|agent|setup|undelivered] [--cause c] [--stopped-at step] [--repo owner/name] [--slow] [--tz zone] [--customers] | blocked [--days N] [--org id] [--customers] | endings [--days N | --since ISO] [--org id,id] [--no-model] [--top N] [--write-cases [--dir evals/letterpress]] | unblock <org-id> <host> <subject> | decisions <org-id> [--site host] [--surface plan|fix|build|site] | undo <org-id> <host> <decision-id> | runs [--status s] [--error-code c] [--first-review-cause agent|context|setup|unknown] [--pr merged|closed|open|none] [--harness h] [--days N] [--customers] | beyond [--limit N] [--before ISO] | companies | company <org-id> [--site host] | ideas <org-id> [--site host] [--repo connected|none] | suggestions fix|idea [--day YYYY-MM-DD] [--type key [--org id]] [--customers] | suggestions flag fix|idea <type-key> [--org id --item item-id] [--note …] | suggestions clear <flag-id> | facts <org-id> [--site host] | fits [--recipe id] [--org id] [--site host] [--fits yes|no|unknown|waiting] [--limit N] | replay <run-id> | mark <run-id> <item-id> <right|weak|wrong|lead|gap|recipe|clear> [--note …] | settings | set <weights.<ask>.<reading>|lenses.<lens>.bar.<reading>|lenses.<lens>.bar|lenses.<lens>.research.turns|lenses.<lens>.research.ms|asks.<lens>.ask|asks.<lens>.guidance|dismissals.block_days|preflight.off|explore.ask|explore.research.turns|explore.research.ms|explore.every_days> <value>";
|
|
5329
|
+
"Usage: admin letterpress status | gaps | friction [--kind error|exception|rage|step|server|stall|background] [--surface s] [--org id] [--limit N] [--customers] | issues [--days N] [--state came_back|open|fixing|resolved] [--source ask|friction] [--surface s] [--whose ours|agent|setup] [--limit N] | issues fix|unfix <key> [--pr url] [--note …] | tools [--days N] [--org id] [--customers] | checks | frustration [--days N] | health | asks [--days N] [--surface cmd_l|build_chat|slack|terminal|app|signup|letter] [--people | --letter] [--door d] [--whose ours|agent|setup|member] [--pattern <code or key>] [--org id] [--limit N] [--customers] | telemetry [--days N] [--harness h] [--customers] | tokens [--days N] [--so-far] [--all-orgs] | prs [--days N | --from YYYY-MM-DD [--to YYYY-MM-DD] | --all-time] [--day YYYY-MM-DD] [--org id] [--state merged|open|closed] [--people | --letter] [--top N] [--tz zone] [--all-orgs] | failures [--days N | --from YYYY-MM-DD [--to YYYY-MM-DD] | --all-time] [--day YYYY-MM-DD] [--org id] [--failure ours|agent|setup|undelivered] [--cause c] [--stopped-at step] [--repo owner/name] [--slow] [--tz zone] [--customers] | blocked [--days N] [--org id] [--customers] | endings [--days N | --since ISO] [--org id,id] [--no-model] [--top N] [--write-cases [--dir evals/letterpress]] | unblock <org-id> <host> <subject> | decisions <org-id> [--site host] [--surface plan|fix|build|site] | undo <org-id> <host> <decision-id> | runs [--status s] [--error-code c] [--first-review-cause agent|context|setup|unknown] [--pr merged|closed|open|none] [--harness h] [--days N] [--customers] | beyond [--limit N] [--before ISO] | companies | company <org-id> [--site host] | ideas <org-id> [--site host] [--repo connected|none] | suggestions fix|idea [--day YYYY-MM-DD] [--type key [--org id]] [--customers] | suggestions flag fix|idea <type-key> [--org id --item item-id] [--note …] | suggestions clear <flag-id> | facts <org-id> [--site host] | fits [--recipe id] [--org id] [--site host] [--fits yes|no|unknown|waiting] [--limit N] | replay <run-id> | mark <run-id> <item-id> <right|weak|wrong|lead|gap|recipe|clear> [--note …] | settings | set <weights.<ask>.<reading>|lenses.<lens>.bar.<reading>|lenses.<lens>.bar|lenses.<lens>.research.turns|lenses.<lens>.research.ms|asks.<lens>.ask|asks.<lens>.guidance|dismissals.block_days|preflight.off|explore.ask|explore.research.turns|explore.research.ms|explore.every_days> <value>";
|
|
5330
5330
|
|
|
5331
5331
|
/** One number of the settings from a dotted path and a value: the PUT body save_engine_settings reads. */
|
|
5332
5332
|
function engineSettingsPatch(path, value) {
|
|
@@ -5518,6 +5518,7 @@ async function cmdAdminLetterpress(ctx) {
|
|
|
5518
5518
|
if (flags.surface) q.set("surface", String(flags.surface));
|
|
5519
5519
|
if (flags.org) q.set("org_id", String(flags.org));
|
|
5520
5520
|
if (flags.limit) q.set("limit", String(flags.limit));
|
|
5521
|
+
if (flagBool(flags.customers)) q.set("customers", "1");
|
|
5521
5522
|
const r = await staffRequest(ctx, "GET", `${CODING_TELEMETRY}?${q}`);
|
|
5522
5523
|
printResult(io, flags, r, (f) =>
|
|
5523
5524
|
[
|
|
@@ -5649,7 +5650,7 @@ async function cmdAdminLetterpress(ctx) {
|
|
|
5649
5650
|
`Coding agent, last ${t.days} days${t.customer_only ? " (customers only)" : ""}: ${t.all.runs} runs (${t.previous.runs} the period before)`,
|
|
5650
5651
|
...[t.all, ...t.by_harness].map(
|
|
5651
5652
|
(h) =>
|
|
5652
|
-
`${h.harness.padEnd(13)} ${String(h.runs).padStart(4)} runs first-try merge ${pct(h.first_try_merge)}
|
|
5653
|
+
`${h.harness.padEnd(13)} ${String(h.runs).padStart(4)} runs first-try merge ${pct(h.first_try_merge)} per merged PR ${usd(h.cost.per_merged_pr_usd)} agent ${min(h.time.agent_ms.p50)}`
|
|
5653
5654
|
),
|
|
5654
5655
|
t.moved.length
|
|
5655
5656
|
? `moved beyond chance: ${t.moved.map((m) => `${m.measure} ${m.direction}`).join(", ")}`
|
|
@@ -5821,6 +5822,8 @@ async function cmdAdminLetterpress(ctx) {
|
|
|
5821
5822
|
if (flags[flag]) q.set(key, String(flags[flag]));
|
|
5822
5823
|
if (flagBool(flags["all-orgs"])) q.set("customers", "0");
|
|
5823
5824
|
if (flagBool(flags["all-time"])) q.set("all_time", "1");
|
|
5825
|
+
if (flagBool(flags.people)) q.set("asked_by", "person");
|
|
5826
|
+
if (flagBool(flags.letter)) q.set("asked_by", "letter");
|
|
5824
5827
|
const r = await staffRequest(ctx, "GET", `${PULL_REQUESTS}?${q}`);
|
|
5825
5828
|
const pct = (v) => (v == null ? "—" : `${Math.round(100 * v)}%`);
|
|
5826
5829
|
printResult(io, flags, r, (x) =>
|