@letterstory/cli 0.176.57 → 0.176.59
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 +2 -1
- package/lib/commands/build.mjs +2 -0
- package/lib/commands/replicate.mjs +5 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
86
86
|
|
|
87
87
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
88
|
-
export const VERSION = "0.176.
|
|
88
|
+
export const VERSION = "0.176.59";
|
|
89
89
|
|
|
90
90
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
91
91
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -1745,6 +1745,7 @@ Build (a change to your site, or launching what isn't code; the Build box's own
|
|
|
1745
1745
|
build reads Done with no PR to merge. --again repeats an open build's ask.
|
|
1746
1746
|
--new-site: a website of its own, built and hosted (deploy create)
|
|
1747
1747
|
--look-like a.com,b.com (with --new-site): sites to model its look after
|
|
1748
|
+
--site-name <name> (with --new-site): its name; left out, named after --site
|
|
1748
1749
|
build talk <words…> [--conversation <id>|--build <id>] [--site <host>] [--harness letterpress-1|claude-code|codex]
|
|
1749
1750
|
[--repo owner/name] [--action build|build_pr|build_merge]
|
|
1750
1751
|
One turn of a conversation with Build (questions, follow-ups on a build)
|
package/lib/commands/build.mjs
CHANGED
|
@@ -69,6 +69,8 @@ const ARGS = {
|
|
|
69
69
|
new_site: { flag: "new-site", type: "bool" },
|
|
70
70
|
// --new-site --look-like linear.app,supabase.com: other companies' sites to model its look after.
|
|
71
71
|
look_like: { value: (flags) => (flagCsv(flags["look-like"]).length ? flagCsv(flags["look-like"]) : undefined) },
|
|
72
|
+
// --new-site --site-name OLAPdb: the name it keeps; left out, it is named after --site.
|
|
73
|
+
site_name: "site-name",
|
|
72
74
|
// --plan-only: answer what it would do and start nothing (--json for the plan to send back).
|
|
73
75
|
plan_only: { flag: "plan-only", type: "bool" },
|
|
74
76
|
// --plan-only always plans what it's given, as /plan does: it was asked for by name.
|
|
@@ -100,6 +100,11 @@ function headline(x) {
|
|
|
100
100
|
` ${x.summary.replicated} of ${x.summary.pages} pages replicated; ${x.summary.passing} match the original at every width (mean ${pct(x.summary.meanPixel)})`,
|
|
101
101
|
]
|
|
102
102
|
: []),
|
|
103
|
+
...(x.media
|
|
104
|
+
? [
|
|
105
|
+
` Media ${x.media.files} large file${x.media.files === 1 ? "" : "s"} (${(x.media.bytes / 1e6).toFixed(1)} MB) served from Letter's media CDN, not the repo`,
|
|
106
|
+
]
|
|
107
|
+
: []),
|
|
103
108
|
...x.collections.map(
|
|
104
109
|
(c) =>
|
|
105
110
|
` Collection ${c.pattern}: ${c.items} items (${c.markdown_bodies} as Markdown) in ${c.content_path_template}`
|