@letterstory/cli 0.176.9 → 0.176.11
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 +10 -2
- package/lib/commands/admin.mjs +3 -1
- package/lib/commands/repo.mjs +12 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
81
81
|
|
|
82
82
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
83
|
-
export const VERSION = "0.176.
|
|
83
|
+
export const VERSION = "0.176.11";
|
|
84
84
|
|
|
85
85
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
86
86
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -188,6 +188,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
188
188
|
"overwrite",
|
|
189
189
|
// admin demo set --clear-baseline (reset --rebuild is listed below)
|
|
190
190
|
"clear-baseline",
|
|
191
|
+
"forget-company",
|
|
192
|
+
"forget-site",
|
|
191
193
|
"reread-company",
|
|
192
194
|
"clean-slate",
|
|
193
195
|
// admin crm record-outcome --draft
|
|
@@ -1049,6 +1051,12 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
|
|
|
1049
1051
|
model credit); --reread-company also forgets the company
|
|
1050
1052
|
read (manifesto, positioning, identity, competitors) and
|
|
1051
1053
|
reads it again. Merged PRs are undone only by --restore-repo.
|
|
1054
|
+
admin demo reset <org-id> blank --clean-slate [--restore-repo revert] --forget-company --forget-site
|
|
1055
|
+
From scratch: only the org's name. GitHub, the domain, Set-up,
|
|
1056
|
+
the CMS, Search Console, probes, targets, phantom, blog and
|
|
1057
|
+
Visitors hidden or parked; the company read and the site map
|
|
1058
|
+
forgotten (the company is kept as company_before), so the
|
|
1059
|
+
domain typed into Set-up maps and reads it all afresh.
|
|
1052
1060
|
admin demo check <org-id> Is it ready to show? Competitors, targets, answers, the
|
|
1053
1061
|
Plan's rows, the issues open, no PR open, GitHub, the
|
|
1054
1062
|
phantom's site. Exits 1 when not ready.
|
|
@@ -1700,7 +1708,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letter GitHub App op
|
|
|
1700
1708
|
automate add --template … --slack-channel <C…>
|
|
1701
1709
|
repo slack-targets Slack channels and people Send to Slack can use, with ids
|
|
1702
1710
|
repo slack-test Post a test into the Send to Slack channel
|
|
1703
|
-
repo start --repo <owner/name> [--gitlab] --instructions <text>|--instructions-file <path|->
|
|
1711
|
+
repo start --repo <owner/name> [--gitlab] --instructions <text>|--instructions-file <path|-> [--page <path>]...
|
|
1704
1712
|
[--branch <base>] [--attach <path>]... [--attach-url <name>=<https url>]...
|
|
1705
1713
|
[--attach-ref <path>]... [--attach-url-ref <name>=<https url>]...
|
|
1706
1714
|
[--action build|build_pr|build_merge|slack|linear] [--with-preview]
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -6477,7 +6477,7 @@ const DEMO_ITEM_FLAGS = [
|
|
|
6477
6477
|
"setup",
|
|
6478
6478
|
];
|
|
6479
6479
|
const DEMO_USAGE =
|
|
6480
|
-
"Usage: admin demo guide | list [--enrollable] | show <org-id> [--moves] | set <org-id> [--enroll] [--unenroll] [--file <state.json>] [--phantom parked|shown] [--main-blog …] [--visitors …] [--probes not_run|shown] [--cms hidden|shown] [--publish-target …] [--search-console …] [--github …] [--domain …] [--setup fresh|finished] [--domain-cap n] [--inject <key>]... [--hide <key>]... [--save-as <name>] [--baseline <owner/repo>[@sha] | --clear-baseline] [--copy-from <org-id> [--copy-scenarios a,b] [--overwrite]] [--auto-reset <scenario>|off] [--every <minutes>] [--release] | bootstrap <org-id>... --from <org-id> [--scenarios a,b] [--overwrite] | reset <org-id> <scenario> [--clean-slate] [--close-prs since_applied|all_open|none] [--hold <minutes>] [--restore-repo revert|force] [--rebuild] [--reread-company] | check <org-id>";
|
|
6480
|
+
"Usage: admin demo guide | list [--enrollable] | show <org-id> [--moves] | set <org-id> [--enroll] [--unenroll] [--file <state.json>] [--phantom parked|shown] [--main-blog …] [--visitors …] [--probes not_run|shown] [--cms hidden|shown] [--publish-target …] [--search-console …] [--github …] [--domain …] [--setup fresh|finished] [--domain-cap n] [--inject <key>]... [--hide <key>]... [--save-as <name>] [--baseline <owner/repo>[@sha] | --clear-baseline] [--copy-from <org-id> [--copy-scenarios a,b] [--overwrite]] [--auto-reset <scenario>|off] [--every <minutes>] [--release] | bootstrap <org-id>... --from <org-id> [--scenarios a,b] [--overwrite] | reset <org-id> <scenario> [--clean-slate] [--close-prs since_applied|all_open|none] [--hold <minutes>] [--restore-repo revert|force] [--rebuild] [--reread-company] [--forget-company] [--forget-site] | check <org-id>";
|
|
6481
6481
|
|
|
6482
6482
|
const readinessLines = (r) =>
|
|
6483
6483
|
r
|
|
@@ -6656,6 +6656,8 @@ async function cmdAdminDemo(ctx) {
|
|
|
6656
6656
|
restore_repo: flagStr(flags["restore-repo"]),
|
|
6657
6657
|
rebuild: flagBool(flags.rebuild) || undefined,
|
|
6658
6658
|
reread_company: flagBool(flags["reread-company"]) || undefined,
|
|
6659
|
+
forget_company: flagBool(flags["forget-company"]) || undefined,
|
|
6660
|
+
forget_site: flagBool(flags["forget-site"]) || undefined,
|
|
6659
6661
|
})
|
|
6660
6662
|
);
|
|
6661
6663
|
printResult(io, flags, result, (r) => [r.notes.join("\n"), readinessLines(r.readiness)].join("\n"));
|
package/lib/commands/repo.mjs
CHANGED
|
@@ -92,6 +92,17 @@ const ARGS = {
|
|
|
92
92
|
harness: { flag: "harness", enum: ["claude-code", "letterpress-1", "codex"] },
|
|
93
93
|
// --again: start it even when an open change already asks for the same thing.
|
|
94
94
|
again: { flag: "again", type: "bool" },
|
|
95
|
+
// --page <path>, repeatable or comma-separated: the pages the change is about ("/pricing"), so another change
|
|
96
|
+
// about the same pages is noticed before a sandbox starts.
|
|
97
|
+
pages: {
|
|
98
|
+
value: (flags) => {
|
|
99
|
+
const pages = flagList(flags.page)
|
|
100
|
+
.flatMap((v) => v.split(","))
|
|
101
|
+
.map((v) => v.trim())
|
|
102
|
+
.filter(Boolean);
|
|
103
|
+
return pages.length ? pages : undefined;
|
|
104
|
+
},
|
|
105
|
+
},
|
|
95
106
|
// --verifier / --no-verifier: review the change before it goes out; omitted, the deployment's choice.
|
|
96
107
|
verifier: { value: (flags) => (flags["no-verifier"] ? false : flags.verifier ? true : undefined) },
|
|
97
108
|
},
|
|
@@ -438,6 +449,7 @@ async function repoStart(ctx) {
|
|
|
438
449
|
"harness",
|
|
439
450
|
"verifier",
|
|
440
451
|
"no-verifier",
|
|
452
|
+
"page",
|
|
441
453
|
"wait",
|
|
442
454
|
]);
|
|
443
455
|
// One upload for every file (names must be unique across both), then the references marked.
|