@letterstory/cli 0.177.81 → 0.177.82
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/README.md +1 -1
- package/lib/cli.mjs +1 -1
- package/lib/commands/admin.mjs +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -446,7 +446,7 @@ how it was tested, and what we learned and why.
|
|
|
446
446
|
|
|
447
447
|
```bash
|
|
448
448
|
# Needs a STAFF key with recipes:read (reads) and recipes:write (writes): mint it on
|
|
449
|
-
# /superadmin/
|
|
449
|
+
# /superadmin/recipes?view=settings → "Your agent's key". Recipes are global: one library behind every
|
|
450
450
|
# account's Plan. The same routes and functions as that page.
|
|
451
451
|
export LETTERSTORY_STAFF_API_KEY=<your staff key with recipes:read,recipes:write>
|
|
452
452
|
|
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.82";
|
|
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] [--surface s] [--org id] [--limit N] | asks [--days N] [--surface cmd_l|build_chat|slack|terminal|app|signup|letter] [--people | --letter] [--door d] [--org id] [--limit N] | telemetry [--days N] [--harness h] [--all-orgs] | 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] [--all-orgs] | blocked [--days N] [--org id] [--all-orgs] | 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] | 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]] [--all-orgs] | 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] [--surface s] [--org id] [--limit N] | asks [--days N] [--surface cmd_l|build_chat|slack|terminal|app|signup|letter] [--people | --letter] [--door d] [--whose ours|agent|setup|member] [--org id] [--limit N] | telemetry [--days N] [--harness h] [--all-orgs] | 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] [--all-orgs] | blocked [--days N] [--org id] [--all-orgs] | 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] | 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]] [--all-orgs] | 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) {
|
|
@@ -5507,6 +5507,7 @@ async function cmdAdminLetterpress(ctx) {
|
|
|
5507
5507
|
if (flagBool(flags.letter)) q.set("asked_by", "letter");
|
|
5508
5508
|
if (flags.door) q.set("door", String(flags.door));
|
|
5509
5509
|
if (flags.surface) q.set("surface", String(flags.surface));
|
|
5510
|
+
if (flags.whose) q.set("whose", String(flags.whose));
|
|
5510
5511
|
if (flags.org) q.set("org_id", String(flags.org));
|
|
5511
5512
|
if (flags.limit) q.set("limit", String(flags.limit));
|
|
5512
5513
|
const r = await staffRequest(ctx, "GET", `${CODING_TELEMETRY}?${q}`);
|
|
@@ -5518,6 +5519,9 @@ async function cmdAdminLetterpress(ctx) {
|
|
|
5518
5519
|
`Delivered, last ${a.days} days${a.computed_at ? ` (read ${a.computed_at}${a.stale ? ", stale" : ""}${a.partial ? ", partial" : ""})` : ""}`,
|
|
5519
5520
|
line(a.summary.person),
|
|
5520
5521
|
line(a.summary.letter),
|
|
5522
|
+
a.summary.whose
|
|
5523
|
+
? `Whose: ours ${a.summary.whose.ours} the agent's ${a.summary.whose.agent} their setup ${a.summary.whose.setup} their call ${a.summary.whose.member}`
|
|
5524
|
+
: "",
|
|
5521
5525
|
"",
|
|
5522
5526
|
...a.summary.doors.map(line),
|
|
5523
5527
|
"",
|
|
@@ -5527,7 +5531,7 @@ async function cmdAdminLetterpress(ctx) {
|
|
|
5527
5531
|
"",
|
|
5528
5532
|
...a.failures.map(
|
|
5529
5533
|
(f) =>
|
|
5530
|
-
`${f.at.slice(0, 16)} ${(f.org ?? f.org_id).slice(0, 20).padEnd(20)} ${f.door.padEnd(22)} ${f.outcome.padEnd(13)} ${f.reason ?? ""}: ${f.why ?? ""}${f.pr_url ? ` ${f.pr_url}` : ""}`
|
|
5534
|
+
`${f.at.slice(0, 16)} ${(f.org ?? f.org_id).slice(0, 20).padEnd(20)} ${f.door.padEnd(22)} ${f.outcome.padEnd(13)} ${(f.whose ?? "").padEnd(6)} ${f.reason ?? ""}: ${f.why ?? ""}${f.pr_url ? ` ${f.pr_url}` : ""}`
|
|
5531
5535
|
),
|
|
5532
5536
|
].join("\n")
|
|
5533
5537
|
);
|