@letterstory/cli 0.177.76 → 0.177.78
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 +5 -3
- package/lib/commands/build.mjs +2 -0
- package/lib/commands/repo.mjs +6 -3
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
import { fetchParkedSections, withoutParked } from "./parked.mjs";
|
|
91
91
|
|
|
92
92
|
// Matches cli/package.json; publish-cli.yml rewrites both to the published version.
|
|
93
|
-
export const VERSION = "0.177.
|
|
93
|
+
export const VERSION = "0.177.78";
|
|
94
94
|
|
|
95
95
|
/** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
|
|
96
96
|
export const EXIT_PAYMENT_REQUIRED = 3;
|
|
@@ -184,6 +184,8 @@ export const BOOLEAN_FLAGS = new Set([
|
|
|
184
184
|
"build-it",
|
|
185
185
|
// build: every change reads Letter's tools from its sandbox.
|
|
186
186
|
"primitives-access",
|
|
187
|
+
// build, repo revise: the sandbox also writes in Letter (posts into the blog collection, its publish target).
|
|
188
|
+
"letter-writes",
|
|
187
189
|
// build list: only Build's Archived tab (--open, already listed, is its Open tab).
|
|
188
190
|
"archived",
|
|
189
191
|
// plan pending --queued: only the rows a person queued for later.
|
|
@@ -1895,7 +1897,7 @@ Build (a change to your site, or launching what isn't code; the Build box's own
|
|
|
1895
1897
|
build <words…> [--prompt <text>] [--site <host>] [--subject <host/path>]... [--action build|build_pr|build_merge|slack|linear]
|
|
1896
1898
|
[--attach <path>]... [--attach-url <name>=<https url>]... [--attach-ref <path>]... [--attach-url-ref <name>=<https url>]...
|
|
1897
1899
|
[--harness letterpress-1|claude-code|codex] [--effort low|medium|high|xhigh] [--notify-slack] [--again] [--new-site]
|
|
1898
|
-
[--primitives-access]
|
|
1900
|
+
[--primitives-access] [--letter-writes]
|
|
1899
1901
|
Build from your words: "add a pricing page" opens a preview or PR;
|
|
1900
1902
|
"launch a phantom for us", "set up mailers" or "onboard my blog" is
|
|
1901
1903
|
done by Build itself (a phantom site buys its own domain), and the
|
|
@@ -2025,7 +2027,7 @@ Repo changes (Claude Code edits your repo in a sandbox; the Letter GitHub App op
|
|
|
2025
2027
|
[--detail full] one row per run by default; full: every field
|
|
2026
2028
|
repo publish <run-id> Make PR on a preview in review
|
|
2027
2029
|
repo merge <run-id> Merge its open PR (a squash; the repo's branch rules decide)
|
|
2028
|
-
repo revise <run-id> --instructions <text>|--instructions-file <path|-> [--copy-edits-file <path|->]
|
|
2030
|
+
repo revise <run-id> --instructions <text>|--instructions-file <path|-> [--copy-edits-file <path|->] [--letter-writes]
|
|
2029
2031
|
[--attach <path>]… [--attach-ref <path>]… [--attach-url name=url]… [--attach-url-ref name=url]…
|
|
2030
2032
|
Ask for more on a preview (it takes over the preview's link) or an
|
|
2031
2033
|
open PR (one more commit); copy edits: JSON [{ path, before, after }];
|
package/lib/commands/build.mjs
CHANGED
|
@@ -69,6 +69,8 @@ const ARGS = {
|
|
|
69
69
|
notify_slack: { flag: "notify-slack", type: "bool" },
|
|
70
70
|
// --primitives-access: its change reads Letter's tools from its sandbox (a read-only MCP key beside the repo).
|
|
71
71
|
primitives_access: { flag: "primitives-access", type: "bool" },
|
|
72
|
+
// --letter-writes: part of the ask is done in Letter (posts into the blog collection, its publish target).
|
|
73
|
+
letter_writes: { flag: "letter-writes", type: "bool" },
|
|
72
74
|
harness: { flag: "harness", enum: ["letterpress-1", "claude-code", "codex"] },
|
|
73
75
|
// --branch <name>: where its changes start and its pull requests go; omitted, the branch that builds the site.
|
|
74
76
|
base_branch: "branch",
|
package/lib/commands/repo.mjs
CHANGED
|
@@ -200,7 +200,8 @@ const ARGS = {
|
|
|
200
200
|
},
|
|
201
201
|
get_repo_change_settings: {},
|
|
202
202
|
list_suggested_fixes: {},
|
|
203
|
-
|
|
203
|
+
// --query gtm: only the channels named like it (a big workspace's whole list is long).
|
|
204
|
+
list_slack_fix_targets: { query: "query" },
|
|
204
205
|
send_slack_test_message: {},
|
|
205
206
|
set_repo_change_settings: {
|
|
206
207
|
default_action: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
|
|
@@ -294,6 +295,8 @@ const ARGS = {
|
|
|
294
295
|
run_id: { positional: 0, required: true, label: "run-id" },
|
|
295
296
|
instructions: { value: (flags) => readTextInput(flags, "instructions", "instructions-file") },
|
|
296
297
|
copy_edits: { value: (flags) => copyEdits(flags) },
|
|
298
|
+
// --letter-writes: the follow-up also writes in Letter (a review issue the last run had no access for).
|
|
299
|
+
letter_writes: { flag: "letter-writes", type: "bool" },
|
|
297
300
|
files: { value: (_flags, _positionals, extra) => (extra.files?.length ? extra.files : undefined) },
|
|
298
301
|
},
|
|
299
302
|
address_pr_review: { run_id: { positional: 0, required: true, label: "run-id" } },
|
|
@@ -1006,8 +1009,8 @@ async function repoSuggestions(ctx) {
|
|
|
1006
1009
|
/** `repo slack-targets`: the channels and people Send to Slack can use, with their ids. */
|
|
1007
1010
|
async function repoSlackTargets(ctx) {
|
|
1008
1011
|
const { client, flags, io } = ctx;
|
|
1009
|
-
refuseUnknownFlags(ctx,
|
|
1010
|
-
const result = await client.callTool("list_slack_fix_targets",
|
|
1012
|
+
refuseUnknownFlags(ctx, ARGS.list_slack_fix_targets, []);
|
|
1013
|
+
const result = await client.callTool("list_slack_fix_targets", argsFromFlags(ARGS.list_slack_fix_targets, flags));
|
|
1011
1014
|
printResult(io, flags, result, (r) =>
|
|
1012
1015
|
[
|
|
1013
1016
|
"Channels (repo settings --slack-channel <id>):",
|