@letterstory/cli 0.150.0 → 0.150.1

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
@@ -66,7 +66,7 @@ import {
66
66
 
67
67
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
68
68
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
69
- export const VERSION = "0.150.0";
69
+ export const VERSION = "0.150.1";
70
70
 
71
71
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
72
72
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
@@ -1446,6 +1446,7 @@ The Site (one model of your whole marketing site, keyed by host and path):
1446
1446
 
1447
1447
  Repo changes (Claude Code edits your repo in a sandbox; the Letter GitHub App opens a PR):
1448
1448
  repo repos Repos the Letter GitHub App can reach
1449
+ repo connect Is GitHub connected; the link a person opens to connect it
1449
1450
  repo branches --repo owner/name Branches a change can start from (default first)
1450
1451
  repo prs [--repo owner/name] Every open PR (whoever opened it), longest-idle first
1451
1452
  repo suggestions Fixes found and not acted on yet, and how to start each
@@ -8,6 +8,7 @@
8
8
  // repo revise → revise_repo_change (ask for more on a preview, before the PR)
9
9
  // repo say → send_repo_change_message (steer a build while its agent works)
10
10
  // repo repos → list_github_app_repos repo branches → list_repo_branches
11
+ // repo connect → connect_github (the link a person opens to connect GitHub)
11
12
  // repo prs → list_open_pull_requests (every open PR, whoever opened it)
12
13
  // repo install-letterprove → letterprove_open_install_pr
13
14
  // repo install-visitors → visitors_open_install_pr
@@ -249,6 +250,7 @@ const ARGS = {
249
250
  site_host: "site",
250
251
  },
251
252
  list_github_app_repos: {},
253
+ connect_github: {},
252
254
  list_repo_branches: {
253
255
  repo_owner: { value: (flags) => splitRepo(flags).owner },
254
256
  repo_name: { value: (flags) => splitRepo(flags).name },
@@ -333,6 +335,8 @@ export async function cmdRepo(ctx) {
333
335
  return repoSay(rest);
334
336
  case "repos":
335
337
  return repoRepos(rest);
338
+ case "connect":
339
+ return repoConnect(rest);
336
340
  case "branches":
337
341
  return repoBranches(rest);
338
342
  case "prs":
@@ -717,6 +721,14 @@ async function repoRepos(ctx) {
717
721
  return 0;
718
722
  }
719
723
 
724
+ /** `repo connect`: whether GitHub is connected, and the link a person opens to connect it. */
725
+ async function repoConnect(ctx) {
726
+ const { client, flags, io } = ctx;
727
+ const result = await client.callTool("connect_github", argsFromFlags(ARGS.connect_github, flags));
728
+ printResult(io, flags, result, (r) => r.message);
729
+ return 0;
730
+ }
731
+
720
732
  /** `repo prs [--repo owner/name]`: every open PR, longest-idle first, and which Letter opened. */
721
733
  async function repoPrs(ctx) {
722
734
  const { client, flags, io } = ctx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.150.0",
3
+ "version": "0.150.1",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",