@letterstory/cli 0.177.100 → 0.177.102
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 +4 -2
- package/lib/commands/build.mjs +5 -2
- package/lib/commands/domains.mjs +6 -1
- package/lib/commands/insights.mjs +5 -2
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
92
92
|
|
|
93
93
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
94
|
-
export const VERSION = "0.177.
|
|
94
|
+
export const VERSION = "0.177.102";
|
|
95
95
|
|
|
96
96
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
97
97
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1913,6 +1913,7 @@ Insights:
|
|
|
1913
1913
|
insights access [--period 14d|30d|90d] [--collection <uuid>]
|
|
1914
1914
|
Page access: who's reading your phantom sites
|
|
1915
1915
|
insights activity [--phantom <uuid>] [--limit <n>] What hit your phantom sites in the last 7 days, newest first
|
|
1916
|
+
insights story The Story's signals: what is set up, what needs attention, snoozed cards
|
|
1916
1917
|
|
|
1917
1918
|
Build (a change to your site, or launching what isn't code; the Build box's own door):
|
|
1918
1919
|
build <words…> [--prompt <text>] [--site <host>] [--subject <host/path>]... [--action build|build_pr|build_merge|slack|linear]
|
|
@@ -2106,7 +2107,8 @@ Domains (the domains you hold, and free ones that match what people search):
|
|
|
2106
2107
|
domains plan <domain> [--phrase "<search>"] [--searches <n>] [--version <version>] [--no-write]
|
|
2107
2108
|
The most strategic site for the domain, every version
|
|
2108
2109
|
scored, and whether it can launch; spends nothing
|
|
2109
|
-
domains launch <domain> [--phrase …] [--searches …] [--version <version>] [--words "<plan words>"]
|
|
2110
|
+
domains launch <domain> [--phrase …] [--searches …] [--version <version>] [--words "<plan words>"]
|
|
2111
|
+
[--prompt "<what to build>"] [--look-like a.com,b.com] --yes
|
|
2110
2112
|
Build and Launch Site: buys the domain if needed, builds
|
|
2111
2113
|
the plan and puts it live
|
|
2112
2114
|
|
package/lib/commands/build.mjs
CHANGED
|
@@ -352,10 +352,13 @@ async function buildTalk(ctx) {
|
|
|
352
352
|
|
|
353
353
|
// ——— Reading builds back: what Build's list and a build's page show ———
|
|
354
354
|
|
|
355
|
+
/** Where a build stands, as the app reads it (`reading.state`: merged, pr_open, …); its steps' record only without one. */
|
|
356
|
+
const standing = (b) => b.reading?.state ?? b.status;
|
|
357
|
+
|
|
355
358
|
/** A build's change steps as lines: where each stands, then its preview and pull request. */
|
|
356
359
|
export function buildLines(b) {
|
|
357
360
|
const where = b.reading?.detail ?? b.status;
|
|
358
|
-
const lines = [`${b.id} ${b
|
|
361
|
+
const lines = [`${b.id} ${standing(b)} ${b.title}${b.domain ? ` (${b.domain})` : ""}`, ` ${where}`];
|
|
359
362
|
for (const s of b.steps ?? []) {
|
|
360
363
|
lines.push(` ${s.lane ?? s.status} ${s.title ?? "Step"}${s.note ? `: ${s.note}` : ""}`);
|
|
361
364
|
if (s.attention) lines.push(` ${s.attention}`);
|
|
@@ -397,7 +400,7 @@ async function buildList(ctx) {
|
|
|
397
400
|
? r.builds
|
|
398
401
|
.map(
|
|
399
402
|
(b) =>
|
|
400
|
-
`${b.id} ${b.
|
|
403
|
+
`${b.id} ${standing(b).padEnd(11)} ${b.created_at.slice(0, 10)} ${b.title}${b.domain ? ` (${b.domain})` : ""}`
|
|
401
404
|
)
|
|
402
405
|
.join("\n")
|
|
403
406
|
: "No builds yet."
|
package/lib/commands/domains.mjs
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
// letterstory domains plan bestaidatalabs.com [--phrase "best ai data labs"] [--searches 880] [--version comparison]
|
|
12
12
|
// [--no-write]
|
|
13
13
|
// the most strategic site for it; spends nothing
|
|
14
|
-
// letterstory domains launch bestaidatalabs.com [--phrase …] [--searches …] [--version …] --
|
|
14
|
+
// letterstory domains launch bestaidatalabs.com [--phrase …] [--searches …] [--version …] [--prompt "…"]
|
|
15
|
+
// [--look-like a.com,b.com] --yes
|
|
15
16
|
// Build and Launch Site: buys it if needed, builds the
|
|
16
17
|
// plan and puts it live (spends money; domains:write)
|
|
17
18
|
|
|
@@ -76,6 +77,10 @@ export const ARGS = {
|
|
|
76
77
|
version: { flag: "version" },
|
|
77
78
|
// The words of a plan already read (`domains plan … --json`'s plan.words): that plan is built as it was.
|
|
78
79
|
words: { flag: "words" },
|
|
80
|
+
// --prompt "<what to build>": built as asked when no --version is given; with one, it leads that plan.
|
|
81
|
+
prompt: { flag: "prompt" },
|
|
82
|
+
// --look-like linear.app,stripe.com: design references, the sites to design it after.
|
|
83
|
+
look_like: { value: (flags) => (flagCsv(flags["look-like"]).length ? flagCsv(flags["look-like"]) : undefined) },
|
|
79
84
|
accepted_quote: {
|
|
80
85
|
value: (flags) => (flags["accepted-quote"] ? JSON.parse(flags["accepted-quote"]) : undefined),
|
|
81
86
|
},
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Measure → Reads (`reads`), Prompt tracking (`prompts`, also `questions`), Keyword tracking (`keywords`, or
|
|
6
6
|
// `keywords <topic>` to research one), 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
|
-
// is reading the phantom sites (`activity`) — the same reads the web app renders. Search Console's
|
|
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`).
|
|
10
10
|
|
|
11
11
|
import { CliError } from "../client.mjs";
|
|
@@ -76,6 +76,7 @@ export const ARGS = {
|
|
|
76
76
|
phantom_id: { flag: "phantom" },
|
|
77
77
|
limit: { flag: "limit", type: "num" },
|
|
78
78
|
},
|
|
79
|
+
get_story_signals: {},
|
|
79
80
|
list_gsc_properties: {},
|
|
80
81
|
select_gsc_property: {
|
|
81
82
|
site_url: { positional: 0, label: "site-url", required: true },
|
|
@@ -130,13 +131,15 @@ export async function cmdInsights(ctx) {
|
|
|
130
131
|
return call(rest, "list_answer_claims");
|
|
131
132
|
case "activity":
|
|
132
133
|
return call(rest, "get_recent_activity");
|
|
134
|
+
case "story":
|
|
135
|
+
return call(rest, "get_story_signals");
|
|
133
136
|
case "properties":
|
|
134
137
|
return call(rest, "list_gsc_properties");
|
|
135
138
|
case "property":
|
|
136
139
|
return call(rest, "select_gsc_property");
|
|
137
140
|
default:
|
|
138
141
|
throw new CliError(
|
|
139
|
-
`Unknown insights subcommand: ${sub ?? "(none)"}. Try: summary, reads, prompts, keywords [topic], pages, page, mentions, portrayal, claims, competitors, question, detection, activity, site, post, top, bank, access, properties, property`
|
|
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`
|
|
140
143
|
);
|
|
141
144
|
}
|
|
142
145
|
}
|