@letterstory/cli 0.177.183 → 0.177.184

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.183";
96
+ export const VERSION = "0.177.184";
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;
@@ -32,7 +32,7 @@
32
32
  // letterstory visits transact prebuild <site-id>... [--dry-run] staff: build customers' agent sites, Letter paying
33
33
  // letterstory visits transact asks [--since 7d] [--limit 50]
34
34
  // letterstory visits transact learnings [--since 7d]
35
- // letterstory visits transact site [publish|unpublish] [--domain ask.acme.com | --domain none] [--remove <slug>] [--dismiss "<question>"] the Agent Site tab
35
+ // letterstory visits transact site [publish|unpublish] [--domain ask.acme.com | --domain none] [--remove <slug>] [--dismiss "<question>"] [--forget <address>] the Agent Site tab
36
36
 
37
37
  import { CliError } from "../client.mjs";
38
38
  import { flagBool, flagStr, printResult, argsFromFlags } from "./shared.mjs";
@@ -208,6 +208,7 @@ export const ARGS = {
208
208
  },
209
209
  remove: { flag: "remove" },
210
210
  dismiss: { flag: "dismiss" },
211
+ forget: { flag: "forget" },
211
212
  },
212
213
  visitors_export: {
213
214
  site_id: "site",
@@ -463,7 +464,8 @@ async function visitsTransact(ctx) {
463
464
  rest.positionals[0] === "unpublish" ||
464
465
  flags.domain !== undefined ||
465
466
  flags.remove !== undefined ||
466
- flags.dismiss !== undefined;
467
+ flags.dismiss !== undefined ||
468
+ flags.forget !== undefined;
467
469
  const result = await call(rest, write ? "visitors_set_agent_site" : "visitors_get_agent_site");
468
470
  printResult(io, flags, result, (r) => {
469
471
  if (!r.available) return "Agent Sites aren't available yet";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.183",
3
+ "version": "0.177.184",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",