@letterstory/cli 0.177.169 → 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 +3 -1
- package/lib/commands/site.mjs +3 -1
- package/package.json +1 -1
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.
|
|
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",
|
package/lib/commands/site.mjs
CHANGED
|
@@ -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
|
|
|
@@ -216,6 +216,8 @@ const ARGS = {
|
|
|
216
216
|
return folder ? { folder: String(folder), words: String(words ?? "") } : undefined;
|
|
217
217
|
},
|
|
218
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" },
|
|
219
221
|
},
|
|
220
222
|
fix_site_observations: {
|
|
221
223
|
host: { positional: 0, required: true, label: "host" },
|