@letterstory/cli 0.177.168 → 0.177.170

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.168";
96
+ export const VERSION = "0.177.170";
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;
@@ -292,6 +292,8 @@ export const BOOLEAN_FLAGS = new Set([
292
292
  "with-preview",
293
293
  // build / repo start / site fix --keep-open: the org's auto-merge window never merges its pull request.
294
294
  "keep-open",
295
+ // site suggest: the Auto-merge box (--keep-open unticks it).
296
+ "auto-merge",
295
297
  // repo …: the repo is a GitLab project (--repo group/subgroup/project).
296
298
  "gitlab",
297
299
  "accept",
@@ -2016,7 +2018,7 @@ The Site (one model of your whole marketing site, keyed by host and path):
2016
2018
  site refresh <host> [--force-map] [--force-audit] [--skip-observe] [--skip-suggest]
2017
2019
  Run the daily loop now: re-map, re-audit, signals, Jev
2018
2020
  site unmap <host> Remove a host and everything hanging off it
2019
- site tree <host> [path] [--depth <n>] [--unfold] [--since <iso>]
2021
+ site tree <host> [path] [--depth <n>] [--unfold] [--since <iso>] [--filter <words>]
2020
2022
  The tree one folder at a time; --since adds +N/-N per folder
2021
2023
  site page <host> <path> One page: facts, bindings, raw URLs, open items
2022
2024
  site observations <host> [path] [--state open|dismissed|resolved] [--tone risk|warn|info] [--key <k>] [--since <iso>] [--min-reach <0..1>] [--keys]
@@ -17,7 +17,7 @@
17
17
  // site highlight <domain> [--off] → set_competitor_highlight
18
18
  // site prospect <url> → read_prospect_site (staff: any company's site, no account, nothing stored)
19
19
  // site suggest <host> --idea <id> | --draft-id <id>… | --pattern <folder> | --item <id> --path <p>
20
- // | --new-page <folder> --words "<what the page is>" → start_suggestion
20
+ // | --new-page <folder> --words "<what the page is>" [--auto-merge | --keep-open] → start_suggestion
21
21
 
22
22
  import { writeFileSync } from "node:fs";
23
23
 
@@ -90,6 +90,8 @@ const ARGS = {
90
90
  unfold: { flag: "unfold", type: "bool" },
91
91
  subtree: { flag: "subtree", type: "bool" },
92
92
  since: { flag: "since" },
93
+ // The Site's search over the whole map: matches and the folders above them.
94
+ filter: { flag: "filter" },
93
95
  // The ranking's top n, or "all", instead of the attention policy's short list.
94
96
  focus_size: {
95
97
  value: (flags) => {
@@ -214,6 +216,8 @@ const ARGS = {
214
216
  return folder ? { folder: String(folder), words: String(words ?? "") } : undefined;
215
217
  },
216
218
  },
219
+ // --auto-merge / --keep-open: the Auto-merge box; left out, the organization's default.
220
+ auto_merge: { flag: "auto-merge", type: "bool", negate: "keep-open" },
217
221
  },
218
222
  fix_site_observations: {
219
223
  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.168",
3
+ "version": "0.177.170",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",