@letterstory/cli 0.175.26 → 0.175.28
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/bin/letterstory.mjs +13 -2
- package/lib/cli.mjs +1 -1
- package/lib/commands/org.mjs +1 -0
- package/package.json +1 -1
package/bin/letterstory.mjs
CHANGED
|
@@ -3,10 +3,21 @@
|
|
|
3
3
|
// All logic lives in ../lib so it stays unit-testable without spawning a process.
|
|
4
4
|
import { run } from "../lib/cli.mjs";
|
|
5
5
|
|
|
6
|
+
// process.exit() drops whatever a pipe hasn't taken yet: `--json | jq` was cut at 64 KB
|
|
7
|
+
// (payments audit, 2026-11-02). Exit once stdout and stderr have drained.
|
|
8
|
+
function exitAfterFlush(code) {
|
|
9
|
+
let waiting = 2;
|
|
10
|
+
const done = () => {
|
|
11
|
+
if (--waiting === 0) process.exit(code);
|
|
12
|
+
};
|
|
13
|
+
process.stdout.write("", done);
|
|
14
|
+
process.stderr.write("", done);
|
|
15
|
+
}
|
|
16
|
+
|
|
6
17
|
run(process.argv.slice(2))
|
|
7
|
-
.then(
|
|
18
|
+
.then(exitAfterFlush)
|
|
8
19
|
.catch((err) => {
|
|
9
20
|
// A non-CliError escaped run() — a real bug. Show the stack.
|
|
10
21
|
console.error(err);
|
|
11
|
-
|
|
22
|
+
exitAfterFlush(1);
|
|
12
23
|
});
|
package/lib/cli.mjs
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
81
81
|
|
|
82
82
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
83
|
-
export const VERSION = "0.175.
|
|
83
|
+
export const VERSION = "0.175.28";
|
|
84
84
|
|
|
85
85
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
86
86
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
package/lib/commands/org.mjs
CHANGED
|
@@ -251,6 +251,7 @@ export function billingAccountText(r) {
|
|
|
251
251
|
? "No spend cap: overage is on."
|
|
252
252
|
: null,
|
|
253
253
|
...(r.pastDueAt ? [`Past due since ${r.pastDueAt}.`] : []),
|
|
254
|
+
...(r.backgroundPause ? [r.backgroundPause.message] : []),
|
|
254
255
|
...(r.payments.length
|
|
255
256
|
? r.payments.map(
|
|
256
257
|
(p) =>
|