@letterstory/cli 0.107.0 → 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.107.0";
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
@@ -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 },
@@ -345,7 +347,7 @@ async function repoSites(ctx) {
345
347
  /** `repo set-site --repo owner/name --site acme.com [--not]`: say which site a repo builds (or doesn't). */
346
348
  async function repoSetSite(ctx) {
347
349
  const { client, flags, io } = ctx;
348
- refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "site", "not"]);
350
+ refuseUnknownFlags(ctx, {}, ["repo", "owner", "name", "site", "not", "branch"]);
349
351
  const result = await client.callTool("set_repo_site", argsFromFlags(ARGS.set_repo_site, flags));
350
352
  ok(ctx, result.message);
351
353
  printResult(io, flags, result.site);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.107.0",
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",