@letterstory/cli 0.177.153 → 0.177.155

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.153";
96
+ export const VERSION = "0.177.155";
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
+ "update",
105
106
  "include-tests",
106
107
  "as-test",
107
108
  "discover",
@@ -119,6 +119,7 @@ export const ARGS = {
119
119
  enum: ["folder", "page", "site", "text"],
120
120
  },
121
121
  ask_id: "ask",
122
+ source_id: "source",
122
123
  path: {
123
124
  value: (flags, positionals) =>
124
125
  ["folder", "page"].includes(positionals[0]) && !/^https?:/i.test(positionals[1] ?? "")
@@ -168,7 +169,13 @@ export const ARGS = {
168
169
  site_id: "site",
169
170
  source_id: { positional: 0, label: "source id", required: true },
170
171
  },
171
- visitors_open_transact_pr: { site_id: "site", host: "host", repo: "repo", base_branch: "base" },
172
+ visitors_open_transact_pr: {
173
+ site_id: "site",
174
+ host: "host",
175
+ repo: "repo",
176
+ base_branch: "base",
177
+ update: { flag: "update", type: "bool" },
178
+ },
172
179
  visitors_list_transact_asks: { site_id: "site", days, limit: { flag: "limit", type: "num" } },
173
180
  visitors_export: {
174
181
  site_id: "site",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.153",
3
+ "version": "0.177.155",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",