@letterstory/cli 0.140.0 → 0.141.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
@@ -64,7 +64,7 @@ import {
64
64
  } from "./commands.mjs";
65
65
 
66
66
  // Keep in sync with cli/package.json.
67
- export const VERSION = "0.140.0";
67
+ export const VERSION = "0.141.0";
68
68
 
69
69
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
70
70
  // can't accidentally swallow the id as --json's value. Every `type: "bool"` flag (and its
@@ -114,6 +114,10 @@ export const ARGS = {
114
114
  generator_id: { positional: 0, label: "enclosure-id", required: true },
115
115
  prospect_id: "prospect",
116
116
  },
117
+ set_generator_photo: {
118
+ generator_id: { positional: 0, label: "enclosure-id", required: true },
119
+ photo_url: { flag: "url", required: true },
120
+ },
117
121
  get_generator_version: {
118
122
  generator_id: { positional: 0, label: "enclosure-id", required: true },
119
123
  version: { value: (_flags, positionals) => Number(requirePositional(positionals, 1, "version")) },
@@ -182,6 +186,7 @@ const USAGE = `Usage: enclosures <list|show|create|update|prints>
182
186
  enclosures starters
183
187
  enclosures create --starter site_audit --login <app-id> Begin from a starter (its version 1 included)
184
188
  enclosures write-steps <enclosure-id> [--prospect <id>] Claude Code writes its steps from its description
189
+ enclosures photo <enclosure-id> --url <https link> A sign photo's photo: you holding a blank sheet
185
190
  enclosures version <enclosure-id> <n> One version in full: its steps and the script prints replay
186
191
  enclosures add-version <enclosure-id> (--script <code>|--script-file <path>) --step <text>… [--host <h>…] [--summary <s>]
187
192
  enclosures approve <enclosure-id> --version <n>
@@ -215,6 +220,8 @@ export async function cmdEnclosures(ctx) {
215
220
  return enclosuresVersion(rest);
216
221
  case "write-steps":
217
222
  return enclosuresWriteSteps(rest);
223
+ case "photo":
224
+ return enclosuresPhoto(rest);
218
225
  case "add-version":
219
226
  return enclosuresAddVersion(rest);
220
227
  case "approve":
@@ -372,6 +379,18 @@ async function enclosuresWriteSteps(ctx) {
372
379
  return 0;
373
380
  }
374
381
 
382
+ async function enclosuresPhoto(ctx) {
383
+ const { client, flags, positionals, io } = ctx;
384
+ refuseUnknownFlags(ctx, ARGS.set_generator_photo, []);
385
+ const result = await client.callTool(
386
+ "set_generator_photo",
387
+ argsFromFlags(ARGS.set_generator_photo, flags, positionals)
388
+ );
389
+ ok(ctx, `Added version ${result.version} with your photo. Test it, then approve it to print with it.`);
390
+ printResult(io, flags, result, (r) => `version ${r.version}`);
391
+ return 0;
392
+ }
393
+
375
394
  async function enclosuresVersion(ctx) {
376
395
  const { client, flags, positionals, io } = ctx;
377
396
  refuseUnknownFlags(ctx, ARGS.get_generator_version, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.140.0",
3
+ "version": "0.141.0",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",