@letterstory/cli 0.177.4 → 0.177.5

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
@@ -87,7 +87,7 @@ import {
87
87
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
88
88
 
89
89
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
90
- export const VERSION = "0.177.4";
90
+ export const VERSION = "0.177.5";
91
91
 
92
92
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
93
93
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -152,6 +152,8 @@ export const BOOLEAN_FLAGS = new Set([
152
152
  // build: repeat an open build's ask; post its progress in the org's Slack channel.
153
153
  "again",
154
154
  "plan-only",
155
+ // build: the words are a request to build, never read as a question.
156
+ "build-it",
155
157
  // build: every change reads Letter's tools from its sandbox.
156
158
  "primitives-access",
157
159
  // build list: only Build's Archived tab (--open, already listed, is its Open tab).
@@ -42,6 +42,10 @@ const ARGS = {
42
42
  },
43
43
  // The words after `build`, or --prompt for a longer ask.
44
44
  prompt: { value: (flags, positionals) => flagStr(flags.prompt) ?? (positionals.join(" ").trim() || undefined) },
45
+ // --ask "<words>": the person's own words, when --prompt was written from them.
46
+ ask: "ask",
47
+ // --build-it: the words are a request to build, never read as a question.
48
+ asked_to_build: { flag: "build-it", type: "bool" },
45
49
  domain: "site",
46
50
  // --subject host/path (repeatable): the pages it is about.
47
51
  subjects: { flag: "subject", type: "list" },
@@ -50,7 +54,7 @@ const ARGS = {
50
54
  files: { value: (_flags, _positionals, extra) => (extra.files?.length ? extra.files : undefined) },
51
55
  delivery: { flag: "action", enum: ["build", "build_pr", "build_merge", "slack", "linear"] },
52
56
  notify_slack: { flag: "notify-slack", type: "bool" },
53
- // --primitives-access: every change reads Letter's tools from its sandbox (a read-only MCP key beside the repo).
57
+ // --primitives-access: its change reads Letter's tools from its sandbox (a read-only MCP key beside the repo).
54
58
  primitives_access: { flag: "primitives-access", type: "bool" },
55
59
  harness: { flag: "harness", enum: ["letterpress-1", "claude-code", "codex"] },
56
60
  // --branch <name>: where its changes start and its pull requests go; omitted, the branch that builds the site.
@@ -246,6 +250,8 @@ async function buildStart(ctx) {
246
250
  const { client, flags, io } = ctx;
247
251
  refuseUnknownFlags(ctx, {}, [
248
252
  "prompt",
253
+ "ask",
254
+ "build-it",
249
255
  "site",
250
256
  "subject",
251
257
  "recipe",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.4",
3
+ "version": "0.177.5",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",