@letterstory/cli 0.177.185 → 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/usage.mjs +7 -3
- 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/usage.mjs
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// --host app.acme.com --schemas public --since … --until … Supabase or any Postgres
|
|
14
14
|
// letterstory usage shown [--days 1-90] statistics shown to agents, what agents get, who read them
|
|
15
15
|
// letterstory usage shown hide <choice_id> [--snapshot <snapshot_id>] withdraw the current website placement
|
|
16
|
-
// letterstory usage shown pr [--repo <owner/name>] [--base <branch>] put them on the website: one build, one pull request
|
|
16
|
+
// letterstory usage shown pr [--snapshot <id>] [--repo <owner/name>] [--base <branch>] put them on the website: one build, one pull request
|
|
17
17
|
// letterstory usage shown check [--url <page>] check a page serves them as the data says
|
|
18
18
|
// letterstory usage case-study [--days 7|30|90] the patterns and the latest case study
|
|
19
19
|
// letterstory usage case-study generate [--days] [--patterns a,b] [--named [--companies x.com,y.com]]
|
|
@@ -135,8 +135,12 @@ export const ARGS = {
|
|
|
135
135
|
choice_id: { positional: 0, required: true, label: "choice_id" },
|
|
136
136
|
shown: { value: (_flags, _positionals, extra) => extra.shown === true },
|
|
137
137
|
},
|
|
138
|
-
open_shown_statistics_pr: {
|
|
139
|
-
|
|
138
|
+
open_shown_statistics_pr: {
|
|
139
|
+
snapshot_id: { flag: "snapshot" },
|
|
140
|
+
repo: { flag: "repo" },
|
|
141
|
+
base_branch: { flag: "base" },
|
|
142
|
+
},
|
|
143
|
+
check_shown_statistics_on_site: { snapshot_id: { flag: "snapshot" }, url: { flag: "url" } },
|
|
140
144
|
disconnect_usage_payments: {},
|
|
141
145
|
get_usage_sources: { host: { flag: "host" }, site_id: { flag: "site" } },
|
|
142
146
|
choose_product_repo: {
|
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) },
|