@letterstory/cli 0.125.0 → 0.126.0
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/repo.mjs +3 -0
- package/lib/commands/site.mjs +2 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
} from "./commands.mjs";
|
|
62
62
|
|
|
63
63
|
// Keep in sync with cli/package.json.
|
|
64
|
-
export const VERSION = "0.
|
|
64
|
+
export const VERSION = "0.126.0";
|
|
65
65
|
|
|
66
66
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
67
67
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
@@ -96,6 +96,7 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
96
96
|
"own-beat",
|
|
97
97
|
"refresh",
|
|
98
98
|
"preview",
|
|
99
|
+
"with-preview",
|
|
99
100
|
"accept",
|
|
100
101
|
"help",
|
|
101
102
|
"version",
|
|
@@ -1312,8 +1313,9 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letterstory GitHub A
|
|
|
1312
1313
|
repo slack-test Post a test into the Send to Slack channel
|
|
1313
1314
|
repo start --repo <owner/name> --instructions <text>|--instructions-file <path|->
|
|
1314
1315
|
[--branch <base>] [--attach <path>]... [--attach-url <name>=<https url>]...
|
|
1315
|
-
[--action build|build_pr|build_merge|slack|linear] [--wait]
|
|
1316
|
+
[--action build|build_pr|build_merge|slack|linear] [--with-preview] [--wait]
|
|
1316
1317
|
Start a change (attached files go to the sandbox);
|
|
1318
|
+
--with-preview keeps a preview up next to the PR;
|
|
1317
1319
|
--wait follows it to the PR
|
|
1318
1320
|
repo fix-audit --issue <issue-type>... [--audit <id>] [--branch <base>] [--action build|build_pr|build_merge|slack|linear] [--wait]
|
|
1319
1321
|
One PR fixing site-audit issues (repeat --issue to bundle) on every affected page,
|
package/lib/commands/repo.mjs
CHANGED
|
@@ -63,6 +63,8 @@ const ARGS = {
|
|
|
63
63
|
files: { value: (_flags, _positionals, extra) => (extra.files?.length ? extra.files : undefined) },
|
|
64
64
|
action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
|
|
65
65
|
preview: { flag: "preview", type: "bool" },
|
|
66
|
+
// --with-preview: the PR opens straight away and a preview of the change stays up next to it.
|
|
67
|
+
with_preview: { flag: "with-preview", type: "bool" },
|
|
66
68
|
},
|
|
67
69
|
create_repo_change_upload: { file_names: { internal: "the basenames of the --attach files" } },
|
|
68
70
|
list_repo_sites: {},
|
|
@@ -320,6 +322,7 @@ async function repoStart(ctx) {
|
|
|
320
322
|
"attach-url",
|
|
321
323
|
"action",
|
|
322
324
|
"preview",
|
|
325
|
+
"with-preview",
|
|
323
326
|
"wait",
|
|
324
327
|
]);
|
|
325
328
|
const files = [
|
package/lib/commands/site.mjs
CHANGED
|
@@ -178,6 +178,8 @@ const ARGS = {
|
|
|
178
178
|
base_branch: { flag: "base-branch" },
|
|
179
179
|
preview: { flag: "preview", type: "bool" },
|
|
180
180
|
action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
|
|
181
|
+
// --with-preview: the PR opens straight away and a preview of the fix stays up next to it.
|
|
182
|
+
with_preview: { flag: "with-preview", type: "bool" },
|
|
181
183
|
},
|
|
182
184
|
};
|
|
183
185
|
|