@letterstory/cli 0.174.5 → 0.175.0

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
@@ -76,7 +76,7 @@ import {
76
76
  } from "./commands.mjs";
77
77
 
78
78
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
79
- export const VERSION = "0.174.5";
79
+ export const VERSION = "0.175.0";
80
80
 
81
81
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
82
82
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -4549,7 +4549,7 @@ async function cmdAdminSpend(ctx) {
4549
4549
  const result = await staffRequest(ctx, "GET", `${SPEND}/usage-margin${params.size ? `?${params}` : ""}`);
4550
4550
  printResult(io, flags, result, (m) =>
4551
4551
  [
4552
- `${m.range.from} → ${m.range.to}: ${m.totals.billableEvents} billable of ${m.totals.events} events · ${m.totals.tokens ?? "?"} tokens (${m.rateCard?.version ?? "no card"}) · cost ${usd(m.totals.cost?.totalUsd)} · margin ${m.totals.marginUsd === null ? "?" : usd(m.totals.marginUsd)}`,
4552
+ `${m.range.from} → ${m.range.to}: ${m.totals.billableEvents} billable of ${m.totals.events} events · ${m.totals.tokens ?? "?"} tokens (${m.rateCards?.length > 1 ? `${m.rateCards.map((c) => c.version).join(" + ")}, each day on its own card` : (m.rateCard?.version ?? "no card")}) · cost ${usd(m.totals.cost?.totalUsd)} · margin ${m.totals.marginUsd === null ? "?" : usd(m.totals.marginUsd)}`,
4553
4553
  "",
4554
4554
  ...m.rows.map(
4555
4555
  (r) =>
@@ -37,6 +37,8 @@ const ARGS = {
37
37
  build_id: "build",
38
38
  domain: "site",
39
39
  subjects: { flag: "subject", type: "list" },
40
+ // --recipe <id>: the recipe the words carry out (a Plan row's), recorded on the build it starts.
41
+ recipe: "recipe",
40
42
  files: { value: (_flags, _positionals, extra) => (extra.files?.length ? extra.files : undefined) },
41
43
  harness: { flag: "harness", enum: ["claude-code", "letterpress-1"] },
42
44
  // --repo owner/name: the repo you're working in, where a Proofs install goes.
@@ -274,7 +274,7 @@ function tokenRewardsText(r) {
274
274
  return [
275
275
  `Free tokens for actions: ${r.claimedTokens} earned, ${r.availableTokens} still to earn.`,
276
276
  ...lines,
277
- "GitHub, GitLab, Slack and the CLI are granted on their own once done.",
277
+ "Slack, the CLI, GitHub, GitLab and Search Console are granted on their own once done.",
278
278
  "Claim the rest: letterstory org billing rewards claim <action>",
279
279
  ].join("\n");
280
280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.174.5",
3
+ "version": "0.175.0",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",