@letterstory/cli 0.106.1 → 0.108.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.106.1";
63
+ export const VERSION = "0.108.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
@@ -1179,7 +1179,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letterstory GitHub A
1179
1179
  repo prs [--repo owner/name] Every open PR (whoever opened it), longest-idle first
1180
1180
  repo suggestions Fixes found and not acted on yet, and how to start each
1181
1181
  repo settings [--action build|build_pr|slack] [--branch <name>|none] [--slack-agent <name|U…>|none]
1182
- [--slack-channel <C…>|none] [--autopilot on|off] [--autopilot-weekly <1-20>]
1182
+ [--slack-channel <C…>|none] [--slack-reports off|as_found|daily] [--autopilot on|off] [--autopilot-weekly <1-20>]
1183
1183
  [--autopilot-severity critical|warning]
1184
1184
  The org's defaults for every fix: build (preview first),
1185
1185
  build_pr, or slack (post it to --slack-channel for your
@@ -1198,7 +1198,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letterstory GitHub A
1198
1198
  One PR adding Letterprove's script and identify calls
1199
1199
  (pick the repo where users sign in)
1200
1200
  repo sites [--detect [--force]] Which website each repo builds, and the evidence
1201
- repo set-site --repo <owner/name> --site <host> [--not]
1201
+ repo set-site --repo <owner/name> --site <host> [--not] [--branch <name>|none]
1202
1202
  Say which site a repo builds (--not: correct a wrong label)
1203
1203
  repo reset-site --repo <owner/name> --site <host> Back to automatic detection
1204
1204
  repo status <run-id> Phase, spend, PR link and Claude's summary
@@ -60,6 +60,8 @@ const ARGS = {
60
60
  repo_name: { value: (flags) => splitRepo(flags).name },
61
61
  site_host: { flag: "site", required: true },
62
62
  builds: { flag: "not", type: "bool", invert: true },
63
+ // --branch <name>: the branch that deploys the site (one repo, a site per branch); none = default.
64
+ branch: { value: (flags) => (flags.branch === "none" ? null : flagStr(flags.branch)) },
63
65
  },
64
66
  reset_repo_site: {
65
67
  repo_owner: { value: (flags) => splitRepo(flags).owner },
@@ -95,6 +97,8 @@ const ARGS = {
95
97
  slack_channel: {
96
98
  value: (flags) => (flags["slack-channel"] === "none" ? null : flagStr(flags["slack-channel"])),
97
99
  },
100
+ // --slack-reports off|as_found|daily
101
+ slack_reports: { flag: "slack-reports", enum: ["off", "as_found", "daily"] },
98
102
  // --autopilot on|off, --autopilot-weekly <1-20>, --autopilot-severity critical|warning
99
103
  autopilot: {
100
104
  value: (flags) =>
@@ -343,7 +347,7 @@ async function repoSites(ctx) {
343
347
  /** `repo set-site --repo owner/name --site acme.com [--not]`: say which site a repo builds (or doesn't). */
344
348
  async function repoSetSite(ctx) {
345
349
  const { client, flags, io } = ctx;
346
- refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "site", "not"]);
350
+ refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "site", "not", "branch"]);
347
351
  const result = await client.callTool("set_repo_site", argsFromFlags(ARGS.set_repo_site, flags));
348
352
  ok(ctx, result.message);
349
353
  printResult(io, flags, result.site);
@@ -457,6 +461,7 @@ async function repoSettings(ctx) {
457
461
  "branch",
458
462
  "slack-agent",
459
463
  "slack-channel",
464
+ "slack-reports",
460
465
  "autopilot",
461
466
  "autopilot-weekly",
462
467
  "autopilot-severity",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.106.1",
3
+ "version": "0.108.0",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",