@letterstory/cli 0.177.206 → 0.177.207

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
@@ -93,7 +93,7 @@ import {
93
93
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
94
94
 
95
95
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
96
- export const VERSION = "0.177.206";
96
+ export const VERSION = "0.177.207";
97
97
 
98
98
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
99
99
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -173,6 +173,10 @@ export const ARGS = {
173
173
  get_sequence: {
174
174
  sequence_id: { positional: 0, label: "sequence-id", required: true },
175
175
  },
176
+ duplicate_sequence: {
177
+ sequence_id: { positional: 0, label: "sequence-id", required: true },
178
+ name: { flag: "name" },
179
+ },
176
180
  create_sequence: {
177
181
  name: { flag: "name", required: true },
178
182
  flow: {
@@ -543,7 +547,7 @@ function deleteDispatchLine(result) {
543
547
  return `Dispatch deleted; ${n(moved)} moved${moved > 0 ? ` to ${result.moved_to}` : ""}.`;
544
548
  }
545
549
 
546
- const SEQUENCES_USAGE = `Usage: sequences <list|get|create|update|pause|resume|enroll|stop|review|links|cakes|heyreach>`;
550
+ const SEQUENCES_USAGE = `Usage: sequences <list|get|create|duplicate|update|pause|resume|enroll|stop|review|links|cakes|heyreach>`;
547
551
  const DISPATCHES_USAGE = `Usage: dispatches <list|create|rename|delete>`;
548
552
 
549
553
  // Dispatches: the named review desks a sequence's review stage queues to.
@@ -593,6 +597,9 @@ export async function cmdSequences(ctx) {
593
597
  case "create":
594
598
  case "new":
595
599
  return run(rest, "create_sequence", "Created sequence (a draft: set --status active to send).");
600
+ case "duplicate":
601
+ case "copy":
602
+ return run(rest, "duplicate_sequence", "Copied as a draft.");
596
603
  case "update":
597
604
  return run(rest, "update_sequence", "Updated sequence.");
598
605
  case "pause":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.206",
3
+ "version": "0.177.207",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",