@letterstory/cli 0.143.0 → 0.144.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 +7 -2
- package/lib/commands/repo.mjs +31 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./commands.mjs";
|
|
65
65
|
|
|
66
66
|
// Keep in sync with cli/package.json.
|
|
67
|
-
export const VERSION = "0.
|
|
67
|
+
export const VERSION = "0.144.0";
|
|
68
68
|
|
|
69
69
|
// Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
|
|
70
70
|
// can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
|
|
@@ -1392,10 +1392,15 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letterstory GitHub A
|
|
|
1392
1392
|
repo settings [--action build|build_pr|build_merge|slack|linear] [--branch <name>|none] [--slack-agent <name|U…>|none]
|
|
1393
1393
|
[--slack-channel <C…>|none] [--slack-reports off|as_found|daily] [--reports-channel <C…>|none] [--autopilot-channel <C…>|none] [--listen <C…,C…>|none] [--autopilot on|off] [--autopilot-weekly <1-20>]
|
|
1394
1394
|
[--autopilot-severity critical|warning] [--auto-merge 1h|12h|24h|3d|off]
|
|
1395
|
+
[--reports-remedy report|fix_pr|fix_merge] [--recommendations on|off] [--recommendations-channel <C…>|none]
|
|
1396
|
+
[--competitor-pages on|off] [--competitor-pages-mode relevant|all] [--competitor-pages-channel <C…>|none]
|
|
1395
1397
|
The org's defaults for every fix: build (preview first),
|
|
1396
1398
|
build_pr, or slack (post it to --slack-channel for your
|
|
1397
1399
|
own agent, tagging --slack-agent), and the branch changes go to;
|
|
1398
|
-
--auto-merge merges Letter's PRs once open that long
|
|
1400
|
+
--auto-merge merges Letter's PRs once open that long;
|
|
1401
|
+
Slack's automations: new issues (--slack-reports, and
|
|
1402
|
+
--reports-remedy to fix them on their own), recommended
|
|
1403
|
+
actions, and competitors' new pages, each with a channel
|
|
1399
1404
|
repo slack-targets Slack channels and people Send to Slack can use, with ids
|
|
1400
1405
|
repo slack-test Post a test into the Send to Slack channel
|
|
1401
1406
|
repo start --repo <owner/name> --instructions <text>|--instructions-file <path|->
|
package/lib/commands/repo.mjs
CHANGED
|
@@ -146,6 +146,31 @@ const ARGS = {
|
|
|
146
146
|
slack_reports_channel: {
|
|
147
147
|
value: (flags) => (flags["reports-channel"] === "none" ? null : flagStr(flags["reports-channel"])),
|
|
148
148
|
},
|
|
149
|
+
// --reports-remedy report|fix_pr|fix_merge: ask, or fix it (PR, or PR and merge) and report the change
|
|
150
|
+
slack_reports_remedy: { flag: "reports-remedy", enum: ["report", "fix_pr", "fix_merge"] },
|
|
151
|
+
// --recommendations on|off, --recommendations-channel C…|none
|
|
152
|
+
slack_recommendations: {
|
|
153
|
+
value: (flags) =>
|
|
154
|
+
flags.recommendations === undefined
|
|
155
|
+
? undefined
|
|
156
|
+
: ["on", "true", "1"].includes(String(flags.recommendations)),
|
|
157
|
+
},
|
|
158
|
+
slack_recommendations_channel: {
|
|
159
|
+
value: (flags) =>
|
|
160
|
+
flags["recommendations-channel"] === "none" ? null : flagStr(flags["recommendations-channel"]),
|
|
161
|
+
},
|
|
162
|
+
// --competitor-pages on|off, --competitor-pages-mode relevant|all, --competitor-pages-channel C…|none
|
|
163
|
+
slack_competitor_pages: {
|
|
164
|
+
value: (flags) =>
|
|
165
|
+
flags["competitor-pages"] === undefined
|
|
166
|
+
? undefined
|
|
167
|
+
: ["on", "true", "1"].includes(String(flags["competitor-pages"])),
|
|
168
|
+
},
|
|
169
|
+
slack_competitor_pages_mode: { flag: "competitor-pages-mode", enum: ["relevant", "all"] },
|
|
170
|
+
slack_competitor_pages_channel: {
|
|
171
|
+
value: (flags) =>
|
|
172
|
+
flags["competitor-pages-channel"] === "none" ? null : flagStr(flags["competitor-pages-channel"]),
|
|
173
|
+
},
|
|
149
174
|
// --listen C…,C… (the full list), or --listen none
|
|
150
175
|
slack_listening_channels: {
|
|
151
176
|
value: (flags) =>
|
|
@@ -711,6 +736,12 @@ async function repoSettings(ctx) {
|
|
|
711
736
|
"slack-channel",
|
|
712
737
|
"slack-reports",
|
|
713
738
|
"reports-channel",
|
|
739
|
+
"reports-remedy",
|
|
740
|
+
"recommendations",
|
|
741
|
+
"recommendations-channel",
|
|
742
|
+
"competitor-pages",
|
|
743
|
+
"competitor-pages-mode",
|
|
744
|
+
"competitor-pages-channel",
|
|
714
745
|
"autopilot-channel",
|
|
715
746
|
"listen",
|
|
716
747
|
"autopilot",
|