@letterstory/cli 0.176.3 → 0.176.4
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 +1 -1
- package/lib/commands/org.mjs +4 -1
- package/package.json +1 -1
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.176.
|
|
83
|
+
export const VERSION = "0.176.4";
|
|
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
|
@@ -243,10 +243,13 @@ export function billingAccountText(r) {
|
|
|
243
243
|
: "When they run out, new work needs a card (an admin adds one in Settings → Billing).",
|
|
244
244
|
]
|
|
245
245
|
: []),
|
|
246
|
+
// What an ended plan left owing (earlierPlan): until it is settled a card can't start a new plan, so
|
|
247
|
+
// no plans are listed to pay for.
|
|
248
|
+
...(r.earlierPlan ? [r.earlierPlan.message] : []),
|
|
246
249
|
// Paying by card starts a plan (addCard): every plan offered, as letter.dev/pricing shows them, Growth's
|
|
247
250
|
// "Most teams" and, with usage, "Cheapest for you" (Kaya, 2026-11-02), the same choice Settings →
|
|
248
251
|
// Billing shows; a person enters the card there.
|
|
249
|
-
...(r.addCard
|
|
252
|
+
...(r.addCard && !r.earlierPlan
|
|
250
253
|
? [
|
|
251
254
|
r.addCard.lockedBy
|
|
252
255
|
? `Paying by card starts ${r.addCard.planName}, at ${usd(r.addCard.monthlyUsd)} a month (a signup from ${r.addCard.lockedBy} is in progress): an admin pays in Settings → Billing.`
|