@letterstory/cli 0.177.186 → 0.177.187
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 +3 -1
- package/lib/commands/visits.mjs +6 -2
- package/package.json +1 -1
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.
|
|
96
|
+
export const VERSION = "0.177.187";
|
|
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;
|
|
@@ -535,6 +535,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
535
535
|
"existing",
|
|
536
536
|
// usage case-study generate --named: name the companies (counts only without it).
|
|
537
537
|
"named",
|
|
538
|
+
// visits transact site --check-link: read the site for its link to the Agent Site now.
|
|
539
|
+
"check-link",
|
|
538
540
|
]);
|
|
539
541
|
|
|
540
542
|
// Tiny argv parser: `--flag value`, `--flag=value`, boolean `--flag`, and positionals.
|
package/lib/commands/visits.mjs
CHANGED
|
@@ -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>"] [--forget <address>] the Agent Site tab
|
|
35
|
+
// letterstory visits transact site [publish|unpublish] [--domain ask.acme.com | --domain none] [--remove <slug>] [--dismiss "<question>"] [--forget <address>] [--check-link] the Agent Site tab
|
|
36
36
|
|
|
37
37
|
import { CliError } from "../client.mjs";
|
|
38
38
|
import { flagBool, flagStr, printResult, argsFromFlags } from "./shared.mjs";
|
|
@@ -194,7 +194,11 @@ export const ARGS = {
|
|
|
194
194
|
tests: { value: (flags) => (flagBool(flags.tests) ? true : undefined) },
|
|
195
195
|
},
|
|
196
196
|
visitors_get_transact_learnings: { site_id: "site", host: "host", days },
|
|
197
|
-
visitors_get_agent_site: {
|
|
197
|
+
visitors_get_agent_site: {
|
|
198
|
+
site_id: "site",
|
|
199
|
+
host: "host",
|
|
200
|
+
check_link: { value: (flags) => (flagBool(flags["check-link"]) ? true : undefined) },
|
|
201
|
+
},
|
|
198
202
|
visitors_prebuild_agent_sites: {
|
|
199
203
|
site_ids: { value: (flags, positionals) => (positionals.length ? positionals : undefined) },
|
|
200
204
|
dry_run: { value: (flags) => (flagBool(flags["dry-run"]) ? true : undefined) },
|