@letterstory/cli 0.177.47 → 0.177.48

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
@@ -89,7 +89,7 @@ import {
89
89
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
90
90
 
91
91
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
92
- export const VERSION = "0.177.47";
92
+ export const VERSION = "0.177.48";
93
93
 
94
94
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
95
95
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -59,6 +59,17 @@ export function ideaLines(item, n) {
59
59
  return lines;
60
60
  }
61
61
 
62
+ /**
63
+ * Pure: Fix's strategic rows (the door's `problems`: recipes staff placed in Fix), under the issues as the Fix tab's
64
+ * Strategic view lists them, numbered on from the items (2026-11-14: the terminal never showed them).
65
+ */
66
+ export function problemLines(r) {
67
+ const problems = r.problems ?? [];
68
+ if (!problems.length) return [];
69
+ const from = r.items?.length ?? 0;
70
+ return ["Strategic:", ...problems.flatMap((p, at) => ideaLines(p, from + at + 1))];
71
+ }
72
+
62
73
  /** Pure: an answer's footer: what nothing does, and a first read still under way. */
63
74
  function tailLines(r) {
64
75
  const lines = [];
@@ -78,7 +89,7 @@ export async function cmdAsk(ctx) {
78
89
  throw new CliError("One ask at a time: --outcome, --strategy <id>, --lens fix|build, or your words.");
79
90
  const result = await client.callTool("ask_letterpress", args);
80
91
  printResult(io, flags, result, (r) =>
81
- [r.message, ...r.items.flatMap((i, at) => ideaLines(i, at + 1)), ...tailLines(r)].join("\n")
92
+ [r.message, ...r.items.flatMap((i, at) => ideaLines(i, at + 1)), ...problemLines(r), ...tailLines(r)].join("\n")
82
93
  );
83
94
  return 0;
84
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.47",
3
+ "version": "0.177.48",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",