@letterstory/cli 0.177.18 → 0.177.19

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
@@ -88,7 +88,7 @@ import {
88
88
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
89
89
 
90
90
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
91
- export const VERSION = "0.177.18";
91
+ export const VERSION = "0.177.19";
92
92
 
93
93
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
94
94
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -15,7 +15,8 @@
15
15
  // site competitors → list_competitor_sites site watch-competitors [d] → watch_competitor_sites
16
16
  // site highlight <domain> [--off] → set_competitor_highlight
17
17
  // site prospect <url> → read_prospect_site (staff: any company's site, no account, nothing stored)
18
- // site suggest <host> --idea <id> | --draft-id <id>… | --pattern <folder> | --item <id> --path <p> → start_suggestion
18
+ // site suggest <host> --idea <id> | --draft-id <id>… | --pattern <folder> | --item <id> --path <p>
19
+ // | --new-page <folder> --words "<what the page is>" → start_suggestion
19
20
 
20
21
  import { writeFileSync } from "node:fs";
21
22
 
@@ -202,6 +203,13 @@ const ARGS = {
202
203
  pattern_folder: "pattern",
203
204
  observation_id: "item",
204
205
  path: "path",
206
+ new_page: {
207
+ value: (flags) => {
208
+ const folder = flags["new-page"];
209
+ const words = flags.words;
210
+ return folder ? { folder: String(folder), words: String(words ?? "") } : undefined;
211
+ },
212
+ },
205
213
  },
206
214
  fix_site_observations: {
207
215
  host: { positional: 0, required: true, label: "host" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.18",
3
+ "version": "0.177.19",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",