@letterstory/cli 0.177.177 → 0.177.178

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
@@ -93,7 +93,7 @@ import {
93
93
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
94
94
 
95
95
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
96
- export const VERSION = "0.177.177";
96
+ export const VERSION = "0.177.178";
97
97
 
98
98
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
99
99
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -102,6 +102,7 @@ export const EXIT_PAYMENT_REQUIRED = 3;
102
102
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
103
103
  // `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
104
104
  export const BOOLEAN_FLAGS = new Set([
105
+ "background",
105
106
  "approve",
106
107
  "update",
107
108
  // repo list: open changes past --limit are listed unless --newest-only.
@@ -53,6 +53,14 @@ const paymentScopeArgs = {
53
53
  export const ARGS = {
54
54
  list_evidence_snapshots: { site_id: { flag: "site" } },
55
55
  draft_evidence_snapshot: {
56
+ background: { flag: "background", type: "bool" },
57
+ reply: {
58
+ value: (flags) => {
59
+ if (!flags["reply-to"] && !flags.answer) return undefined;
60
+ if (!flags["reply-to"] || !flags.answer) throw new CliError("Use --reply-to and --answer together");
61
+ return { id: flags["reply-to"], answer: flags.answer };
62
+ },
63
+ },
56
64
  fresh: { flag: "fresh", type: "bool" },
57
65
  choice_id: { flag: "choice" },
58
66
  days: { flag: "days", type: "num" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.177",
3
+ "version": "0.177.178",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",