@letterstory/cli 0.175.7 → 0.175.8

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 CHANGED
@@ -77,7 +77,7 @@ import {
77
77
  } from "./commands.mjs";
78
78
 
79
79
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
80
- export const VERSION = "0.175.7";
80
+ export const VERSION = "0.175.8";
81
81
 
82
82
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
83
83
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -5127,7 +5127,7 @@ const ENGINE = "/api/superadmin/engine-settings";
5127
5127
  const LETTERPRESS = "/api/superadmin/letterpress";
5128
5128
  const CODING_TELEMETRY = "/api/superadmin/coding-telemetry";
5129
5129
  const ENGINE_USAGE =
5130
- "Usage: admin letterpress status | gaps | telemetry [--days N] [--harness h] [--all-orgs] | runs [--status s] [--error-code c] [--pr merged|closed|open|none] [--harness h] [--days N] | beyond [--limit N] [--before ISO] | companies | company <org-id> [--site host] | facts <org-id> [--site host] | fits [--recipe id] [--org id] [--site host] [--fits yes|no|unknown] [--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|explore.ask|explore.research.turns|explore.research.ms|explore.every_days> <value>";
5130
+ "Usage: admin letterpress status | gaps | telemetry [--days N] [--harness h] [--all-orgs] | runs [--status s] [--error-code c] [--pr merged|closed|open|none] [--harness h] [--days N] | beyond [--limit N] [--before ISO] | companies | company <org-id> [--site host] | 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|explore.ask|explore.research.turns|explore.research.ms|explore.every_days> <value>";
5131
5131
 
5132
5132
  /** One number of the settings from a dotted path and a value: the PUT body save_engine_settings reads. */
5133
5133
  function engineSettingsPatch(path, value) {
@@ -5331,7 +5331,7 @@ async function cmdAdminLetterpress(ctx) {
5331
5331
  ? x.companies
5332
5332
  .map(
5333
5333
  (c) =>
5334
- `${(c.last_decided_at ?? "waiting").slice(0, 16).padEnd(16)} ${(c.name ?? c.host).padEnd(28)} ${c.host.padEnd(26)} fit ${String(c.yes).padStart(2)} no ${String(c.no).padStart(2)} unknown ${String(c.unknown).padStart(2)} ${c.org_id}`
5334
+ `${(c.last_decided_at ?? "waiting").slice(0, 16).padEnd(16)} ${(c.name ?? c.host).padEnd(28)} ${c.host.padEnd(26)} fit ${String(c.yes).padStart(2)} waiting ${String(c.awaiting).padStart(2)} no ${String(c.no).padStart(2)} unknown ${String(c.unknown).padStart(2)} ${c.org_id}`
5335
5335
  )
5336
5336
  .join("\n")
5337
5337
  : "No company has a fit yet."
@@ -5350,7 +5350,7 @@ async function cmdAdminLetterpress(ctx) {
5350
5350
  `${c.org.name ?? c.org.id} · ${c.host} · ${c.beyond_library} ask${c.beyond_library === 1 ? "" : "s"} went past the library`,
5351
5351
  ...c.verdicts.map(
5352
5352
  (v) =>
5353
- ` ${v.fits.padEnd(7)} ${v.recipe}: ${v.fits === "unknown" ? `needs ${v.needs}` : v.why} [reads ${v.reads.join(", ") || "—"}]`
5353
+ ` ${v.fits.padEnd(7)} ${v.recipe}: ${v.fits === "unknown" ? `needs ${v.needs}` : v.fits === "waiting" ? `waiting on ${v.waiting_on}` : v.why} [reads ${v.reads.join(", ") || "—"}]`
5354
5354
  ),
5355
5355
  ...c.facts.stored.map(
5356
5356
  (f) =>
@@ -5403,7 +5403,7 @@ async function cmdAdminLetterpress(ctx) {
5403
5403
  ? x.fits
5404
5404
  .map(
5405
5405
  (f) =>
5406
- `${f.decided_at.slice(0, 16)} ${f.host} ${f.fits.padEnd(7)} ${f.recipe}: ${f.fits === "unknown" ? `needs ${f.needs}` : f.why}`
5406
+ `${f.decided_at.slice(0, 16)} ${f.host} ${f.fits.padEnd(7)} ${f.recipe}: ${f.fits === "unknown" ? `needs ${f.needs}` : f.fits === "waiting" ? `waiting on ${f.waiting_on}` : f.why}`
5407
5407
  )
5408
5408
  .join("\n")
5409
5409
  : "No verdicts match."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.175.7",
3
+ "version": "0.175.8",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",