@letterstory/cli 0.176.14 → 0.176.16

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
@@ -80,7 +80,7 @@ import {
80
80
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
81
81
 
82
82
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
83
- export const VERSION = "0.176.14";
83
+ export const VERSION = "0.176.16";
84
84
 
85
85
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
86
86
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -89,6 +89,8 @@ export const EXIT_PAYMENT_REQUIRED = 3;
89
89
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
90
90
  // `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
91
91
  export const BOOLEAN_FLAGS = new Set([
92
+ // build list: also move the builds' open changes along while polling.
93
+ "advance",
92
94
  // automations set: stop reading a data feed.
93
95
  "no-reads",
94
96
  // vary start: pause the test running on the page first.
@@ -1650,12 +1652,12 @@ Insights:
1650
1652
  Build (a change to your site, or launching what isn't code; the Build box's own door):
1651
1653
  build <words…> [--prompt <text>] [--site <host>] [--subject <host/path>]... [--action build|build_pr|build_merge|slack|linear]
1652
1654
  [--attach <path>]... [--attach-url <name>=<https url>]... [--attach-ref <path>]... [--attach-url-ref <name>=<https url>]...
1653
- [--harness claude-code|letterpress-1] [--notify-slack] [--again]
1655
+ [--harness letterpress-1|claude-code|codex] [--notify-slack] [--again]
1654
1656
  Build from your words: "add a pricing page" opens a preview or PR;
1655
1657
  "launch a phantom for us", "set up mailers" or "onboard my blog" is
1656
1658
  done by Build itself (a phantom site buys its own domain), and the
1657
1659
  build reads Done with no PR to merge. --again repeats an open build's ask
1658
- build talk <words…> [--conversation <id>|--build <id>] [--site <host>] [--harness claude-code|letterpress-1]
1660
+ build talk <words…> [--conversation <id>|--build <id>] [--site <host>] [--harness letterpress-1|claude-code|codex]
1659
1661
  [--repo owner/name] [--action build|build_pr|build_merge]
1660
1662
  One turn of a conversation with Build (questions, follow-ups on a build)
1661
1663
  build cancel <build-id> Stop a build before it merges: what's being built stops, its
@@ -1695,7 +1697,7 @@ The Site (one model of your whole marketing site, keyed by host and path):
1695
1697
  [--observation <id>]... Propose a registry tool call; input is validated now
1696
1698
  site decide <proposal-id> --decision accept|dismiss [--reason <why>]
1697
1699
  site fix <host> <observation-id>... [--action build|build_pr|build_merge|slack|linear|handoff] [--with-preview]
1698
- [--harness claude-code|letterpress-1]
1700
+ [--harness letterpress-1|claude-code|codex]
1699
1701
  One change for N observations; handoff prints the prompt, slack/linear need no repo
1700
1702
  site competitors [--since <iso> | --days <n>] [--limit <n>] Tracked competitors' sites: new and removed pages, by folder
1701
1703
  site watch-competitors [domain] [--limit <n>] Map competitors' sitemaps (the next few unmapped, or one now)
@@ -1726,7 +1728,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letter GitHub App op
1726
1728
  [--branch <base>] [--attach <path>]... [--attach-url <name>=<https url>]...
1727
1729
  [--attach-ref <path>]... [--attach-url-ref <name>=<https url>]...
1728
1730
  [--action build|build_pr|build_merge|slack|linear] [--with-preview]
1729
- [--harness claude-code|letterpress-1] [--verifier|--no-verifier] [--wait]
1731
+ [--harness letterpress-1|claude-code|codex] [--verifier|--no-verifier] [--wait]
1730
1732
  Start a change (attached files go to the sandbox;
1731
1733
  -ref ones are context, never put in the repo);
1732
1734
  --with-preview keeps a preview up next to the PR;
@@ -10,7 +10,7 @@
10
10
  // build benchmarks → list_build_benchmarks (staff only; --id <uuid> for one)
11
11
  // build list → list_growth_builds (newest first; --site, --kind, --open/--archived)
12
12
  // build status <id> → list_growth_builds (one build: its steps, previews and PRs)
13
- // build follow <id> → list_growth_builds + get_repo_change_activity, until nothing is at work
13
+ // build follow <id> → list_growth_builds (advance) + get_repo_change_activity, until nothing is at work
14
14
  // build conversations → list_build_conversations
15
15
  // build conversation <id> → get_build_conversation (--build <id> for the one holding a build)
16
16
 
@@ -30,7 +30,7 @@ const ARGS = {
30
30
  files: { value: (_flags, _positionals, extra) => (extra.files?.length ? extra.files : undefined) },
31
31
  delivery: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
32
32
  notify_slack: { flag: "notify-slack", type: "bool" },
33
- harness: { flag: "harness", enum: ["claude-code", "letterpress-1"] },
33
+ harness: { flag: "harness", enum: ["letterpress-1", "claude-code", "codex"] },
34
34
  again: { flag: "again", type: "bool" },
35
35
  // --recipe <id>: the recipe the build carries out (a Plan row's), recorded on it.
36
36
  recipe: "recipe",
@@ -46,11 +46,13 @@ const ARGS = {
46
46
  // --recipe <id>: the recipe the words carry out (a Plan row's), recorded on the build it starts.
47
47
  recipe: "recipe",
48
48
  files: { value: (_flags, _positionals, extra) => (extra.files?.length ? extra.files : undefined) },
49
- harness: { flag: "harness", enum: ["claude-code", "letterpress-1"] },
49
+ harness: { flag: "harness", enum: ["letterpress-1", "claude-code", "codex"] },
50
50
  // --repo owner/name: the repo you're working in, where a Proofs install goes.
51
51
  repo: "repo",
52
52
  // --action build|build_pr|build_merge: how a build this message starts is delivered (Letter Edit's auto-merge sends build_merge).
53
53
  delivery: { flag: "action", enum: ["build", "build_pr", "build_merge"] },
54
+ // --intent build: the words are a command to make the change (what ⌘L's Make Pull Request sends), never answered with only a reply.
55
+ intent: { flag: "intent", enum: ["build"] },
54
56
  },
55
57
  cancel_growth_build: { id: { positional: 0, required: true, label: "build-id" } },
56
58
  start_build_benchmark: {
@@ -72,6 +74,8 @@ const ARGS = {
72
74
  domain: "site",
73
75
  // --archived: Build's Archived tab; --open: its Open tab; neither: both.
74
76
  archived: { flag: "archived", type: "bool", negate: "open" },
77
+ // --advance: also move the builds' open changes along while polling (a queued change takes its sandbox, a merge asked for its next step).
78
+ advance: { flag: "advance", type: "bool" },
75
79
  },
76
80
  list_build_conversations: { limit: { flag: "limit", type: "num" } },
77
81
  get_build_conversation: {
@@ -192,6 +196,7 @@ async function buildTalk(ctx) {
192
196
  "harness",
193
197
  "repo",
194
198
  "action",
199
+ "intent",
195
200
  ...FILE_FLAGS,
196
201
  ]);
197
202
  const files = await attachedFiles(ctx);
@@ -232,7 +237,7 @@ async function readBuild(client, args) {
232
237
  /** `build list`: the organization's builds, newest first. */
233
238
  async function buildList(ctx) {
234
239
  const { client, flags, io } = ctx;
235
- refuseUnknownFlags(ctx, {}, ["limit", "kind", "site", "archived", "open"]);
240
+ refuseUnknownFlags(ctx, {}, ["limit", "kind", "site", "archived", "open", "advance"]);
236
241
  const args = argsFromFlags(ARGS.list_growth_builds, flags, []);
237
242
  const result = await client.callTool("list_growth_builds", args);
238
243
  printResult(io, flags, result, (r) =>
@@ -269,7 +274,8 @@ const FEED_MARK = { progress: "·", stage: "▸", say: "»", think: "◇", tool:
269
274
  async function buildFollow(ctx) {
270
275
  const { client, flags, io } = ctx;
271
276
  refuseUnknownFlags(ctx, {}, []);
272
- const args = argsFromFlags(ARGS.list_growth_builds, {}, ctx.positionals);
277
+ // Following is watching: each read also moves the build's open changes along, as the Build page's poll does.
278
+ const args = { ...argsFromFlags(ARGS.list_growth_builds, {}, ctx.positionals), advance: true };
273
279
  if (!args.id) throw new CliError("Missing required <build-id>");
274
280
  const emit = (event, text) => io.log(flags.json ? JSON.stringify(event) : text);
275
281
  const since = new Map(); // run id → the newest line's `at`
@@ -87,8 +87,8 @@ const ARGS = {
87
87
  preview: { flag: "preview", type: "bool" },
88
88
  // --with-preview: the PR opens straight away and a preview of the change stays up next to it.
89
89
  with_preview: { flag: "with-preview", type: "bool" },
90
- // --harness claude-code|letterpress-1: the coding agent; omitted, the deployment's default.
91
- // codex (OpenAI's Codex CLI) runs only on a test organization, for the harness evals.
90
+ // --harness letterpress-1|claude-code|codex: the coding agent (codex is GPT, through OpenAI's Codex CLI);
91
+ // omitted, the organization's default.
92
92
  harness: { flag: "harness", enum: ["claude-code", "letterpress-1", "codex"] },
93
93
  // --again: start it even when an open change already asks for the same thing.
94
94
  again: { flag: "again", type: "bool" },
@@ -200,8 +200,8 @@ const ARGS = {
200
200
  action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear", "handoff"] },
201
201
  // --with-preview: the PR opens straight away and a preview of the fix stays up next to it.
202
202
  with_preview: { flag: "with-preview", type: "bool" },
203
- // --harness claude-code|letterpress-1: the coding agent; omitted, the deployment's default.
204
- harness: { flag: "harness", enum: ["claude-code", "letterpress-1"] },
203
+ // --harness letterpress-1|claude-code|codex: the coding agent (codex is GPT); omitted, the organization's default.
204
+ harness: { flag: "harness", enum: ["letterpress-1", "claude-code", "codex"] },
205
205
  },
206
206
  };
207
207
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.176.14",
3
+ "version": "0.176.16",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",