@letterstory/cli 0.177.200 → 0.177.201

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.200";
96
+ export const VERSION = "0.177.201";
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;
@@ -545,6 +545,8 @@ export const BOOLEAN_FLAGS = new Set([
545
545
  "named",
546
546
  // visits transact site --check-link: read the site for its link to the Agent Site now.
547
547
  "check-link",
548
+ // visits transact site --tree: add the screen's question tree.
549
+ "tree",
548
550
  ]);
549
551
 
550
552
  // Tiny argv parser: `--flag value`, `--flag=value`, boolean `--flag`, and positionals.
@@ -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] [--prepare] [--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>] [--tree [--since 7d]] the Agent Site tab
40
40
 
41
41
  import { CliError } from "../client.mjs";
42
42
  import { closeSync, fstatSync, openSync, readSync } from "node:fs";
@@ -255,6 +255,8 @@ export const ARGS = {
255
255
  host: "host",
256
256
  check_link: { value: (flags) => (flagBool(flags["check-link"]) ? true : undefined) },
257
257
  dns_for: { flag: "dns-for" },
258
+ tree: { value: (flags) => (flagBool(flags.tree) ? true : undefined) },
259
+ days,
258
260
  },
259
261
  visitors_prebuild_agent_sites: {
260
262
  site_ids: { value: (flags, positionals) => (positionals.length ? positionals : undefined) },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.200",
3
+ "version": "0.177.201",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",