@letterstory/cli 0.177.198 → 0.177.200

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.198";
96
+ export const VERSION = "0.177.200";
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;
@@ -104,6 +104,7 @@ export const EXIT_PAYMENT_REQUIRED = 3;
104
104
  export const BOOLEAN_FLAGS = new Set([
105
105
  "supporting",
106
106
  "share-website",
107
+ "payments",
107
108
  "connections-only",
108
109
  "suggestions",
109
110
  "background",
@@ -86,6 +86,7 @@ export const ARGS = {
86
86
  },
87
87
  fresh: { flag: "fresh", type: "bool" },
88
88
  choice_id: { flag: "choice" },
89
+ payments: { flag: "payments", type: "bool" },
89
90
  days: { flag: "days", type: "num" },
90
91
  site_id: { flag: "site" },
91
92
  prompt: { positional: 0, required: true, label: "prompt" },
@@ -36,7 +36,7 @@
36
36
  // letterstory visits transact prebuild <site-id>... [--dry-run] staff: build customers' agent sites, Letter paying
37
37
  // letterstory visits transact asks [--since 7d] [--limit 50]
38
38
  // letterstory visits transact learnings [--since 7d]
39
- // letterstory visits transact site [publish|unpublish] [--domain ask.acme.com | --domain none] [--remove <slug>] [--dismiss "<question>"] [--forget <address>] [--check-link] [--dns-for <address>] the Agent Site tab
39
+ // letterstory visits transact site [publish|unpublish] [--prepare] [--domain ask.acme.com | --domain none] [--remove <slug>] [--dismiss "<question>"] [--forget <address>] [--check-link] [--dns-for <address>] the Agent Site tab
40
40
 
41
41
  import { CliError } from "../client.mjs";
42
42
  import { closeSync, fstatSync, openSync, readSync } from "node:fs";
@@ -262,6 +262,7 @@ export const ARGS = {
262
262
  },
263
263
  visitors_set_agent_site: {
264
264
  site_id: "site",
265
+ prepare: { value: (flags) => (flagBool(flags.prepare) ? true : undefined) },
265
266
  publish: { value: (flags, positionals) => ({ publish: true, unpublish: false })[positionals[0]] },
266
267
  domain: {
267
268
  value: (flags) =>
@@ -552,6 +553,7 @@ async function visitsTransact(ctx) {
552
553
  const write =
553
554
  rest.positionals[0] === "publish" ||
554
555
  rest.positionals[0] === "unpublish" ||
556
+ flagBool(flags.prepare) ||
555
557
  flags.domain !== undefined ||
556
558
  flags.remove !== undefined ||
557
559
  flags.dismiss !== undefined ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.198",
3
+ "version": "0.177.200",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",