@letterstory/cli 0.177.124 → 0.177.126
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 -2
- package/lib/commands/deploy.mjs +2 -0
- package/lib/commands/insights.mjs +8 -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.126";
|
|
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;
|
|
@@ -1917,6 +1917,7 @@ Insights:
|
|
|
1917
1917
|
Measure → Reads: AI engines and people reading your sites, counted one way
|
|
1918
1918
|
insights prompts [--period 14d|30d|90d] Measure → Prompt tracking: every prompt we ask, each engine's latest answer, share / change / cited
|
|
1919
1919
|
insights keywords [topic] [--refresh] Measure → Keyword tracking: your keywords (searches, difficulty, intent, rank, tracked), or research a topic
|
|
1920
|
+
insights add-keywords --cluster <id> --keyword <k> Add keywords to a keyword cluster (repeat --keyword or comma-separate)
|
|
1920
1921
|
insights pages [--period 14d|30d|90d] [--site own|phantoms|<key>] Measure → Pages: your pages AI answers cited, won questions first
|
|
1921
1922
|
insights page <page> [--period 14d|30d|90d] [--question <prompt-id>] [--filter all|won] [--limit n]
|
|
1922
1923
|
One cited page: the AI answers that linked it, word for word
|
|
@@ -2157,7 +2158,7 @@ Vary (A/B tests of a page's words and images on your own site):
|
|
|
2157
2158
|
|
|
2158
2159
|
Deploy (websites and apps Letter builds from your words and hosts on their own domains):
|
|
2159
2160
|
deploy [list] [--kind app|phantom|bench] Everything deployed: apps, phantoms (and benches, for staff)
|
|
2160
|
-
deploy create "<what it is and who it is for>" [--name <n>] [--domain <d>] [--ref <visual-ref-id>] [--wait]
|
|
2161
|
+
deploy create "<what it is and who it is for>" [--name <n>] [--domain <d> | --preview] [--ref <visual-ref-id>] [--wait]
|
|
2161
2162
|
Named, given a domain (bought under $30 unless you name one),
|
|
2162
2163
|
built by Letterpress-1 with Visitors in it, and put live;
|
|
2163
2164
|
--ref designs it after a Visual Ref (refs create)
|
package/lib/commands/deploy.mjs
CHANGED
|
@@ -35,6 +35,8 @@ export const ARGS = {
|
|
|
35
35
|
wait: { flag: "wait", type: "bool" },
|
|
36
36
|
// --no-spend: buy nothing; the domain is one you hold, or one registered elsewhere.
|
|
37
37
|
no_spend: { flag: "no-spend", type: "bool" },
|
|
38
|
+
// --preview: build it on a preview address on Letter's own domain, nothing bought; a domain comes later.
|
|
39
|
+
preview: { flag: "preview", type: "bool" },
|
|
38
40
|
},
|
|
39
41
|
list_deployments: { kind: { flag: "kind", enum: ["app", "phantom", "bench"] } },
|
|
40
42
|
get_deployment: { id: appId },
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// insights.ts); plus Measure's Overview (`summary`), GEO → Competitors
|
|
4
4
|
// (`competitors`), AI Visibility Bank (`bank`) and phantom Page Access (`access`);
|
|
5
5
|
// Measure → Reads (`reads`), Prompt tracking (`prompts`, also `questions`), Keyword tracking (`keywords`, or
|
|
6
|
-
// `keywords <topic>` to research one), Pages (`pages`, one page's answers `page`), the posts naming you (`mentions`)
|
|
6
|
+
// `keywords <topic>` to research one, `add-keywords` to add some to a cluster), Pages (`pages`, one page's answers `page`), the posts naming you (`mentions`)
|
|
7
7
|
// and Portrayal (`portrayal`, its claims `claims`: how AI answers describe you), and the live feed of what
|
|
8
8
|
// is reading the phantom sites (`activity`), The Story's signals snapshot (`story`) — the same reads the web app renders. Search Console's
|
|
9
9
|
// property: which ones the connected Google account can read (`properties`) and the one tracked (`property`).
|
|
@@ -49,6 +49,10 @@ export const ARGS = {
|
|
|
49
49
|
research_keywords: {
|
|
50
50
|
topic: { positional: 0, label: "topic", required: true },
|
|
51
51
|
},
|
|
52
|
+
add_keywords: {
|
|
53
|
+
cluster_id: { flag: "cluster", required: true },
|
|
54
|
+
keywords: { flag: "keyword", type: "list", required: true },
|
|
55
|
+
},
|
|
52
56
|
list_cited_pages: {
|
|
53
57
|
period: { flag: "period", enum: PERIODS },
|
|
54
58
|
sites: { flag: "site", type: "list" },
|
|
@@ -119,6 +123,8 @@ export async function cmdInsights(ctx) {
|
|
|
119
123
|
return call(rest, "list_measure_questions");
|
|
120
124
|
case "keywords":
|
|
121
125
|
return rest.positionals.length > 0 ? call(rest, "research_keywords") : call(rest, "list_seo_opportunities");
|
|
126
|
+
case "add-keywords":
|
|
127
|
+
return call(rest, "add_keywords");
|
|
122
128
|
case "pages":
|
|
123
129
|
return call(rest, "list_cited_pages");
|
|
124
130
|
case "page":
|
|
@@ -139,7 +145,7 @@ export async function cmdInsights(ctx) {
|
|
|
139
145
|
return call(rest, "select_gsc_property");
|
|
140
146
|
default:
|
|
141
147
|
throw new CliError(
|
|
142
|
-
`Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, prompts, keywords [topic], pages, page, mentions, portrayal, claims, competitors, question, detection, activity, story, site, post, top, bank, access, properties, property`
|
|
148
|
+
`Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, prompts, keywords [topic], add-keywords, pages, page, mentions, portrayal, claims, competitors, question, detection, activity, story, site, post, top, bank, access, properties, property`
|
|
143
149
|
);
|
|
144
150
|
}
|
|
145
151
|
}
|