@letterstory/cli 0.177.27 → 0.177.29

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 CHANGED
@@ -88,7 +88,7 @@ import {
88
88
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
89
89
 
90
90
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
91
- export const VERSION = "0.177.27";
91
+ export const VERSION = "0.177.29";
92
92
 
93
93
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
94
94
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -241,6 +241,8 @@ export const BOOLEAN_FLAGS = new Set([
241
241
  // ask --more: every row that fits, not only the top ones.
242
242
  "more",
243
243
  "preview",
244
+ "keep-preview",
245
+ "sample-banner",
244
246
  "with-preview",
245
247
  // repo …: the repo is a GitLab project (--repo group/subgroup/project).
246
248
  "gitlab",
@@ -2119,16 +2121,17 @@ Bench (Benches: open-source benchmarks on their own domains, kept running; @lett
2119
2121
  bench replicate <id> REPLICATE.md: how an agent reproduces the results
2120
2122
 
2121
2123
  Replicate (the Replicator: a website rebuilt as a native Next.js repo, page for page; free, within fair-use limits):
2122
- replicate <https://site> [--max-pages <n>] [--refine-budget <usd>] [--repo-name <r>] [--repo-owner <o>]
2124
+ replicate <https://site> [--max-pages <n>] [--path <p>]… [--sample-banner] [--refine-budget <usd>] [--repo-name <r>] [--repo-owner <o>]
2123
2125
  Capture every page, rebuild it, compare it pixel by pixel
2124
2126
  replicate [list] Your replications: stage, how closely each matches, preview link;
2125
2127
  the limits (in progress, pages this month, preview days)
2126
2128
  replicate show <id> [--failing] Pages with their routes and pixel match; collections; events
2127
2129
  replicate attach <id> <repo-name> [--repo-owner <o>] The repo to commit it into (yours; Letter never creates it)
2128
- replicate advance <id> [--retry] [--again] [--preview] [--extend-preview <days>]
2130
+ replicate advance <id> [--retry] [--again] [--preview] [--extend-preview <days>] [--keep-preview] [--sample-banner]
2129
2131
  Move it on now; --retry once blocked_on is done (checks the tag or TXT record);
2130
2132
  --again replicates from the start; --preview deploys its staging link again;
2131
2133
  --extend-preview keeps the preview up longer (Letter's team only)
2134
+ --keep-preview keeps it up with no expiry (Letter's team only)
2132
2135
  replicate archive <id> Stop it and take its preview down; the project stays in storage and in the repo
2133
2136
  replicate forms [<id>] [--form <f>] [--limit <n>] [--before <iso>]
2134
2137
  What people sent through the replicated sites' forms, newest first;
@@ -6,11 +6,11 @@
6
6
  // attach_replication_repo, advance_replication, archive_replication, list_form_submissions), the
7
7
  // same lib functions the app calls.
8
8
  //
9
- // letterstory replicate https://example.com [--max-pages 300] [--refine-budget 25] [--repo-name example-site] [--repo-owner <account>]
9
+ // letterstory replicate https://example.com [--max-pages 300] [--path /pricing --path /about] [--refine-budget 25] [--repo-name example-site] [--repo-owner <account>]
10
10
  // letterstory replicate list
11
11
  // letterstory replicate show <id> [--failing]
12
12
  // letterstory replicate attach <id> <repo-name> [--repo-owner <account>]
13
- // letterstory replicate advance <id> [--retry] [--again] [--preview] [--extend-preview <days>]
13
+ // letterstory replicate advance <id> [--retry] [--again] [--preview] [--extend-preview <days>] [--keep-preview]
14
14
  // letterstory replicate archive <id>
15
15
  // letterstory replicate forms [<id>] [--form <form>] [--limit <n>] [--before <iso>]
16
16
  // letterstory replicate forms <id> --show-key (admins: LETTER_FORMS_URL and LETTER_FORMS_KEY to host it yourself)
@@ -24,6 +24,8 @@ export const ARGS = {
24
24
  create_replication: {
25
25
  url: { positional: 0, label: "url", required: true },
26
26
  max_pages: { flag: "max-pages", type: "num" },
27
+ paths: { flag: "path", type: "list" },
28
+ sample_banner: { flag: "sample-banner", type: "bool" },
27
29
  refine_budget_usd: { flag: "refine-budget", type: "num" },
28
30
  repo_name: "repo-name",
29
31
  repo_owner: "repo-owner",
@@ -44,6 +46,8 @@ export const ARGS = {
44
46
  again: { flag: "again", type: "bool" },
45
47
  preview: { flag: "preview", type: "bool" },
46
48
  extend_preview_days: { flag: "extend-preview", type: "num" },
49
+ keep_preview: { flag: "keep-preview", type: "bool" },
50
+ sample_banner: { flag: "sample-banner", type: "bool" },
47
51
  },
48
52
  archive_replication: { replication_id: replicationId },
49
53
  get_replication_forms_key: { replication_id: replicationId },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.27",
3
+ "version": "0.177.29",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",