@letterstory/cli 0.109.0 → 0.111.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 CHANGED
@@ -60,7 +60,7 @@ import {
60
60
  } from "./commands.mjs";
61
61
 
62
62
  // Keep in sync with cli/package.json.
63
- export const VERSION = "0.109.0";
63
+ export const VERSION = "0.111.0";
64
64
 
65
65
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
66
66
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
@@ -1183,7 +1183,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letterstory GitHub A
1183
1183
  repo prs [--repo owner/name] Every open PR (whoever opened it), longest-idle first
1184
1184
  repo suggestions Fixes found and not acted on yet, and how to start each
1185
1185
  repo settings [--action build|build_pr|slack] [--branch <name>|none] [--slack-agent <name|U…>|none]
1186
- [--slack-channel <C…>|none] [--slack-reports off|as_found|daily] [--autopilot on|off] [--autopilot-weekly <1-20>]
1186
+ [--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>]
1187
1187
  [--autopilot-severity critical|warning]
1188
1188
  The org's defaults for every fix: build (preview first),
1189
1189
  build_pr, or slack (post it to --slack-channel for your
@@ -99,6 +99,25 @@ const ARGS = {
99
99
  },
100
100
  // --slack-reports off|as_found|daily
101
101
  slack_reports: { flag: "slack-reports", enum: ["off", "as_found", "daily"] },
102
+ // --reports-channel C…|none, --autopilot-channel C…|none (none = the fix channel)
103
+ slack_reports_channel: {
104
+ value: (flags) => (flags["reports-channel"] === "none" ? null : flagStr(flags["reports-channel"])),
105
+ },
106
+ // --listen C…,C… (the full list), or --listen none
107
+ slack_listening_channels: {
108
+ value: (flags) =>
109
+ flags.listen === undefined
110
+ ? undefined
111
+ : flags.listen === "none"
112
+ ? []
113
+ : String(flags.listen)
114
+ .split(",")
115
+ .map((c) => c.trim())
116
+ .filter(Boolean),
117
+ },
118
+ autopilot_channel: {
119
+ value: (flags) => (flags["autopilot-channel"] === "none" ? null : flagStr(flags["autopilot-channel"])),
120
+ },
102
121
  // --autopilot on|off, --autopilot-weekly <1-20>, --autopilot-severity critical|warning
103
122
  autopilot: {
104
123
  value: (flags) =>
@@ -462,6 +481,9 @@ async function repoSettings(ctx) {
462
481
  "slack-agent",
463
482
  "slack-channel",
464
483
  "slack-reports",
484
+ "reports-channel",
485
+ "autopilot-channel",
486
+ "listen",
465
487
  "autopilot",
466
488
  "autopilot-weekly",
467
489
  "autopilot-severity",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.109.0",
3
+ "version": "0.111.0",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",