@letterstory/cli 0.177.213 → 0.177.214

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.213";
96
+ export const VERSION = "0.177.214";
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;
@@ -188,6 +188,8 @@ const ARGS = {
188
188
  base_branch: "branch",
189
189
  action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
190
190
  preview: { flag: "preview", type: "bool" },
191
+ // --keep-open: the organization's auto-merge window never merges its pull request (Merge still does).
192
+ keep_open: { flag: "keep-open", type: "bool" },
191
193
  },
192
194
  letterprove_open_install_pr: {
193
195
  provider,
@@ -198,6 +200,8 @@ const ARGS = {
198
200
  repo_name: { value: (flags) => splitRepo(flags).name },
199
201
  base_branch: "branch",
200
202
  action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
203
+ // --keep-open: the organization's auto-merge window never merges its pull request (Merge still does).
204
+ keep_open: { flag: "keep-open", type: "bool" },
201
205
  },
202
206
  visitors_open_install_pr: {
203
207
  provider,
@@ -605,7 +609,7 @@ async function followRun(ctx, run) {
605
609
  /** `repo fix-audit --issue <type> [--audit <id>] [--wait]`: one audit issue → one PR, in the repo verified to build the site. */
606
610
  async function repoFixAudit(ctx) {
607
611
  const { client, flags, io } = ctx;
608
- refuseUnknownFlags(ctx, {}, ["issue", "audit", "branch", "action", "preview", "wait"]);
612
+ refuseUnknownFlags(ctx, {}, ["issue", "audit", "branch", "action", "preview", "keep-open", "wait"]);
609
613
  if (issueList(flags).length === 0)
610
614
  throw new CliError("--issue <issue-type> is required (repeat it to fix several in one PR)");
611
615
  const result = await client.callTool(
@@ -623,7 +627,7 @@ async function repoFixAudit(ctx) {
623
627
  /** `repo install-letterprove --repo owner/name [--host h] [--branch b] [--wait]`: the Visitors script on the product + identify → one PR. */
624
628
  async function repoInstallLetterprove(ctx) {
625
629
  const { client, flags, io } = ctx;
626
- refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "gitlab", "host", "branch", "action", "wait"]);
630
+ refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "gitlab", "host", "branch", "action", "keep-open", "wait"]);
627
631
  const result = await client.callTool(
628
632
  "letterprove_open_install_pr",
629
633
  argsFromFlags(ARGS.letterprove_open_install_pr, flags, ctx.positionals)
@@ -228,6 +228,8 @@ export const ARGS = {
228
228
  provider: { flag: "provider" },
229
229
  base_branch: { flag: "base" },
230
230
  mode: { flag: "mode" },
231
+ // --keep-open: the organization's auto-merge window never merges its pull request (Merge still does).
232
+ keep_open: { flag: "keep-open", type: "bool" },
231
233
  },
232
234
  discover_action_events: {
233
235
  source: { flag: "source" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.213",
3
+ "version": "0.177.214",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",