@letterstory/cli 0.49.0 → 0.49.2

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
@@ -54,7 +54,7 @@ import {
54
54
  } from "./commands.mjs";
55
55
 
56
56
  // Keep in sync with cli/package.json.
57
- export const VERSION = "0.49.0";
57
+ export const VERSION = "0.49.2";
58
58
 
59
59
  // Flags that never take a value. Listing them explicitly means `deploy get --json <id>`
60
60
  // can't accidentally swallow the id as --json's value.
@@ -786,9 +786,11 @@ Sequences (multi-step cold email sent from your mailers; approving or enrolling
786
786
  sequences list Your sequences + per-step funnel
787
787
  sequences get <sequence-id> Flow, enrollments, who replied at each step
788
788
  sequences create --name <n> (--flow '<json>'|--flow-file <path>) [--mailer <mailer-id>]...
789
- New draft sequence (nothing sends yet)
789
+ [--[no-]opt-out-footer] [--[no-]postal-address-footer] [--[no-]unsubscribe-links] [--[no-]detect-reply-opt-outs]
790
+ New draft sequence (nothing sends yet; rails default on, opt-out line off)
790
791
  sequences update <sequence-id> [--name <n>] [--flow '<json>'|--flow-file <path>]
791
792
  [--status draft|active|paused|archived] [--mailer <mailer-id>]...
793
+ [--[no-]opt-out-footer] [--[no-]postal-address-footer] [--[no-]unsubscribe-links] [--[no-]detect-reply-opt-outs]
792
794
  sequences pause|resume <sequence-id> Stop / restart sending
793
795
  sequences enroll <sequence-id> (--list <list-id> | --email <addr>... | --recipients '<json>'|--recipients-file <path>)
794
796
  sequences stop <sequence-id> <enrollment-id> Stop one recipient
@@ -123,6 +123,10 @@ export const ARGS = {
123
123
  // field a template resolves to, sent by a caller who has their own.
124
124
  skeleton: { value: (flags) => readJsonFileFlag(flags, "skeleton-file") },
125
125
  brief_json: { value: (flags) => readJsonFileFlag(flags, "brief-json-file") },
126
+ // A deep patch over the kernel's config for THIS run only (2026-10-02): how a run names a
127
+ // writer without a new kernel version — `--config-patch-file patch.json` with
128
+ // `{ "model": "echo/echo" }`, `repairModel`, `quality.model` and the rest of the config.
129
+ config_patch: { value: (flags) => readJsonFileFlag(flags, "config-patch-file") },
126
130
  // A TEMPLATE INSTEAD OF HAND-BUILDING THOSE. `--template <key>` resolves one of your
127
131
  // templates against the material you sent and fills `skeleton`, `target_word_count` and
128
132
  // `brief_json` for this call — and the finished run comes back ASSEMBLED rather than as
@@ -50,6 +50,16 @@ function readCustom(flags) {
50
50
  }
51
51
 
52
52
  const SEQUENCE_STATUSES = ["draft", "active", "paused", "archived"];
53
+
54
+ // The footer/compliance rails, shared by create and update. Bare flag sends
55
+ // true, the no- spelling sends false, neither leaves the field out (create
56
+ // takes the defaults: rails on, opt-out line off).
57
+ const SEQUENCE_RAIL_ARGS = {
58
+ opt_out_footer: { flag: "opt-out-footer", type: "bool", negate: "no-opt-out-footer" },
59
+ postal_address_footer: { flag: "postal-address-footer", type: "bool", negate: "no-postal-address-footer" },
60
+ unsubscribe_links: { flag: "unsubscribe-links", type: "bool", negate: "no-unsubscribe-links" },
61
+ detect_reply_opt_outs: { flag: "detect-reply-opt-outs", type: "bool", negate: "no-detect-reply-opt-outs" },
62
+ };
53
63
  const PROSPECT_STATUSES = ["new", "contacted", "replied", "unsubscribed", "archived"];
54
64
  const mailerIds = {
55
65
  value: (flags) => {
@@ -90,6 +100,7 @@ export const ARGS = {
90
100
  },
91
101
  },
92
102
  mailer_ids: mailerIds,
103
+ ...SEQUENCE_RAIL_ARGS,
93
104
  },
94
105
  update_sequence: {
95
106
  sequence_id: { positional: 0, label: "sequence-id", required: true },
@@ -97,6 +108,7 @@ export const ARGS = {
97
108
  flow: { value: jsonInput("flow") },
98
109
  status: { flag: "status", enum: SEQUENCE_STATUSES },
99
110
  mailer_ids: mailerIds,
111
+ ...SEQUENCE_RAIL_ARGS,
100
112
  },
101
113
  enroll_in_sequence: {
102
114
  sequence_id: { positional: 0, label: "sequence-id", required: true },
@@ -88,7 +88,10 @@ export function refuseUnknownFlags(ctx, argsMap, own = []) {
88
88
  for (const source of Object.values(argsMap ?? {})) {
89
89
  if (typeof source === "string") allowed.add(source);
90
90
  else if (Array.isArray(source)) source.forEach((f) => allowed.add(f));
91
- else if (source && typeof source === "object" && source.flag) allowed.add(source.flag);
91
+ else if (source && typeof source === "object" && source.flag) {
92
+ allowed.add(source.flag);
93
+ if (source.negate) allowed.add(source.negate);
94
+ }
92
95
  }
93
96
  const unknown = Object.keys(ctx.flags).filter((f) => !allowed.has(f));
94
97
  if (unknown.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.49.0",
3
+ "version": "0.49.2",
4
4
  "description": "Spin up and manage Letterstory phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",