@letterstory/cli 0.177.164 → 0.177.165
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 +1 -1
- package/lib/commands/admin.mjs +13 -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.165";
|
|
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;
|
package/lib/commands/admin.mjs
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// admin letterpress settings|flip|set … (recipes:read / recipes:write)
|
|
26
26
|
// admin invariants [--org <id>,…] [--limit N] [--presses] (staff)
|
|
27
27
|
// admin lost-posts [--code lost_guard,lost_provider|held_guard] [--rework] [--days N] [--org <id>] [--limit N] [--apply] (staff)
|
|
28
|
-
// admin demo guide|list|show|set|reset|check|ideas …
|
|
28
|
+
// admin demo guide|list|show|set|reset|check|ideas|sample … (demo:read / demo:write)
|
|
29
29
|
// admin deployments [--health down|failing|blocked|setting_up|live|paused|archived] [--org <id>] [--q <text>] [--archived] [--test] [--no-host] (fleet:read)
|
|
30
30
|
// admin deployments move <app-id> --to <org-id> (--dry-run | --yes) (fleet:onboard)
|
|
31
31
|
// admin models runs|run|star|unstar|scoreboard|requests|request|sampling … (models:read / models:write)
|
|
@@ -7366,7 +7366,7 @@ const DEMO_ITEM_FLAGS = [
|
|
|
7366
7366
|
"setup",
|
|
7367
7367
|
];
|
|
7368
7368
|
const DEMO_USAGE =
|
|
7369
|
-
"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] | domains | new <domain> [--name <n>] [--brief <t>] [--full] [--host vercel|pages] [--no-wait] | teardown <org-id> [--keep-repo] | 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> | ideas <org-id> [--library] [--preview] [--force] | ideas <org-id> --status [--id <run-id>] | sweep [--prepare] [--pull-requests] [--recipes <id>,…] [--variation <n|name>] [--pick <recipe>[:<variation>]]... [--new-org] [--orgs <id>,…] [--exclude <id>,…] [--buy <recipe-id>,…] [--make-orgs] [--no-refit] | sweep --status [--id <sweep-id>] | sweep --reset <recipe-id> [--id <sweep-id>]";
|
|
7369
|
+
"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] | domains | sample | new <domain> [--name <n>] [--brief <t>] [--full] [--host vercel|pages] [--no-wait] | teardown <org-id> [--keep-repo] | 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> | ideas <org-id> [--library] [--preview] [--force] | ideas <org-id> --status [--id <run-id>] | sweep [--prepare] [--pull-requests] [--recipes <id>,…] [--variation <n|name>] [--pick <recipe>[:<variation>]]... [--new-org] [--orgs <id>,…] [--exclude <id>,…] [--buy <recipe-id>,…] [--make-orgs] [--no-refit] | sweep --status [--id <sweep-id>] | sweep --reset <recipe-id> [--id <sweep-id>]";
|
|
7370
7370
|
|
|
7371
7371
|
const readinessLines = (r) =>
|
|
7372
7372
|
r
|
|
@@ -7587,6 +7587,17 @@ async function cmdAdminDemo(ctx) {
|
|
|
7587
7587
|
);
|
|
7588
7588
|
return 0;
|
|
7589
7589
|
}
|
|
7590
|
+
case "sample": {
|
|
7591
|
+
// Acme, the sample org (seed_sample_org): made or refreshed with made-up data dated to end yesterday.
|
|
7592
|
+
const r = await staffPost(ctx, `${DEMO}/sample`, {});
|
|
7593
|
+
printResult(io, flags, r, (x) =>
|
|
7594
|
+
[
|
|
7595
|
+
`${x.name} (${x.domain}) ${x.created ? "made" : "refreshed"}: ${x.org_id}`,
|
|
7596
|
+
...Object.entries(x.counts).map(([what, n]) => ` ${what}: ${n}`),
|
|
7597
|
+
].join("\n")
|
|
7598
|
+
);
|
|
7599
|
+
return 0;
|
|
7600
|
+
}
|
|
7590
7601
|
case "new": {
|
|
7591
7602
|
// A new demo org on a farm phantom's domain. It takes minutes (Pages' first build, the certificate), so
|
|
7592
7603
|
// each call works for a bounded time and says what it waits for; this calls again until done.
|