@letterstory/cli 0.177.108 → 0.177.110

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
@@ -91,7 +91,7 @@ import {
91
91
  import { fetchParkedSections, withoutParked } from "./parked.mjs";
92
92
 
93
93
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
94
- export const VERSION = "0.177.108";
94
+ export const VERSION = "0.177.110";
95
95
 
96
96
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
97
97
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -167,6 +167,8 @@ export const BOOLEAN_FLAGS = new Set([
167
167
  "on",
168
168
  "off",
169
169
  "hot-leads-only",
170
+ // automate add/set: transact_ask only for questions the sources didn't answer.
171
+ "not-in-sources-only",
170
172
  "include-checks",
171
173
  "results-only",
172
174
  // admin crm prospect-org: start (or retry) the org prepared for the booked call.
@@ -745,15 +747,15 @@ Reviewers:
745
747
  and what Letterpress then does
746
748
  automate show <automation-id>
747
749
  automate add [--template post_new_issues|recommended_actions|competitor_pages|competitor_takes|
748
- competitor_changes|icp_visitors|icp_followups|vc_visitors|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
750
+ competitor_changes|icp_visitors|icp_followups|vc_visitors|transact_questions|plan_updates|weekly_release_notes|weekly_growth_brief|monthly_page_refresh|
749
751
  relink_posts|mention_revisions|fix_autopilot|auto_plan|ai_portrayal] [--letterbase <id>|--host <site>]
750
- [--name <n>] [--trigger competitor_page|competitor_change|visitor_identified|issue_found|build_suggestion|plan_update|custom|
751
- schedule]
752
+ [--name <n>] [--trigger competitor_page|competitor_change|visitor_identified|issue_found|build_suggestion|plan_update|post_ready|
753
+ transact_ask|custom|schedule]
752
754
  [--prompt <what Letterpress does with each event>] [--slack-channel <C…>] [--instruction <which events>]
753
755
  [--event <name>] [--kind post|landing] [--competitor <host>] [--site <host>]
754
756
  [--every <n> --unit hours|days|weeks|months] [--facts <a,b>] [--recipe <id>]
755
757
  [--fit-run <run-id> --publication-host <site>]
756
- [--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>]
758
+ [--hot-leads-only] [--icp] [--delivery live|daily --delivery-hour <0-23> --timezone <zone>] [--not-in-sources-only]
757
759
  [--per-day <n>] [--backfill all|<YYYY-MM-DD>] [--off]
758
760
  Make one (a template fills what you leave out): it starts
759
761
  from now (--backfill also runs it on past events, oldest
@@ -18,6 +18,7 @@ const TRIGGERS = [
18
18
  "build_suggestion",
19
19
  "plan_update",
20
20
  "post_ready",
21
+ "transact_ask",
21
22
  "custom",
22
23
  "schedule",
23
24
  ];
@@ -31,6 +32,7 @@ const TEMPLATES = [
31
32
  "icp_visitors",
32
33
  "icp_followups",
33
34
  "vc_visitors",
35
+ "transact_questions",
34
36
  "plan_updates",
35
37
  "weekly_release_notes",
36
38
  "weekly_growth_brief",
@@ -54,6 +56,8 @@ const triggerParams = {
54
56
  collections: { flag: "post-letterbase", type: "list" },
55
57
  hosts: { flag: "site", type: "list" },
56
58
  hot_leads_only: { flag: "hot-leads-only", type: "bool" },
59
+ // --not-in-sources-only: transact_ask only for questions the sources didn't answer.
60
+ not_in_sources_only: { flag: "not-in-sources-only", type: "bool" },
57
61
  // --icp: only people who fit the company's ICP (visitor_identified), checked against their stored fit.
58
62
  icp: { flag: "icp", type: "bool" },
59
63
  // --delivery daily --delivery-hour 17 --timezone America/New_York: visitors in one Slack message a day.
@@ -61,6 +61,7 @@ export const ARGS = {
61
61
  },
62
62
  get_usage_payments: { host: { flag: "host" } },
63
63
  refresh_usage_payments: { host: { flag: "host" } },
64
+ discover_usage_payment_scope: { host: { flag: "host" }, connection_version: { flag: "connection-version" } },
64
65
  list_usage_payment_catalog: { after: { flag: "after" } },
65
66
  get_usage_payment_evidence: {
66
67
  host: { flag: "host" },
@@ -347,6 +348,7 @@ export async function cmdUsage(ctx) {
347
348
  status: "get_usage_payments",
348
349
  refresh: "refresh_usage_payments",
349
350
  disconnect: "disconnect_usage_payments",
351
+ discover: "discover_usage_payment_scope",
350
352
  catalog: "list_usage_payment_catalog",
351
353
  preview: "preview_usage_payment_scope",
352
354
  scope: "set_usage_payment_scope",
@@ -354,7 +356,7 @@ export async function cmdUsage(ctx) {
354
356
  }[ctx.positionals[1] ?? "status"];
355
357
  if (!tool)
356
358
  throw new CliError(
357
- "Use payments connect, status, catalog, preview, scope, evidence, refresh or disconnect"
359
+ "Use payments connect, status, discover, catalog, preview, scope, evidence, refresh or disconnect"
358
360
  );
359
361
  printResult(io, flags, await client.callTool(tool, argsFromFlags(ARGS[tool], flags, [])));
360
362
  return 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.108",
3
+ "version": "0.177.110",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",