@letterstory/cli 0.174.1 → 0.174.3

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
@@ -75,7 +75,7 @@ import {
75
75
  } from "./commands.mjs";
76
76
 
77
77
  // Matches cli/package.json; publish-cli.yml rewrites both to the published version.
78
- export const VERSION = "0.174.1";
78
+ export const VERSION = "0.174.3";
79
79
 
80
80
  /** The exit code for a gate refusal (CARD_REQUIRED, PAYMENT_FAILED, OUT_OF_TOKENS): 1 is a plain error. */
81
81
  export const EXIT_PAYMENT_REQUIRED = 3;
@@ -94,6 +94,8 @@ export const BOOLEAN_FLAGS = new Set([
94
94
  "customers",
95
95
  // build: repeat an open build's ask; post its progress in the org's Slack channel.
96
96
  "again",
97
+ // ask --web: read the web in the Plan's fit for a recipe the facts can't decide (off by default).
98
+ "web",
97
99
  "notify-slack",
98
100
  "remap",
99
101
  // site observations: each kind noticed, not the observations (keys_only).
@@ -1117,6 +1119,7 @@ Admin (STAFF key — --staff-key / LETTERSTORY_STAFF_API_KEY; acts before an org
1117
1119
  | onboard-plan <account-id> [--refresh]
1118
1120
  | prospect-org <account-id> [--start] [--domain acme.com] the org prepared for their booked call
1119
1121
  | prospect-orgs [--status preparing|ready|failed|skipped|parked|converted] [--limit 50]
1122
+ | prospect-org-repost <prospect-org-id> post a ready org's summary to #ready-for-call again
1120
1123
  | payment-link <account-id> [--amount-cents N] [--description "…"] [--plan starter] [--ratio N] [--why "…"] [--first-invoice-credit-cents N]
1121
1124
  The staff CRM's pipeline: bulk-importing a
1122
1125
  CSV of leads, the inbound signal
@@ -3822,6 +3822,12 @@ async function cmdAdminCrm(ctx) {
3822
3822
  prospectOrgLines(x.prospectOrg)
3823
3823
  );
3824
3824
  }
3825
+ case "prospect-org-repost": {
3826
+ // admin crm prospect-org-repost <prospect-org-id> — post a ready org's summary to
3827
+ // #ready-for-call again. The key needs crm:write.
3828
+ if (!id) throw new CliError("Usage: admin crm prospect-org-repost <prospect-org-id>");
3829
+ return out(await staffPost(ctx, `${CRM}/prospect-orgs/${id}/repost`, {}), (x) => `Posted to ${x.channel}`);
3830
+ }
3825
3831
  case "prospect-orgs": {
3826
3832
  // admin crm prospect-orgs [--status ready] [--limit 50] — the orgs prepared for booked
3827
3833
  // calls, newest first.
@@ -3878,7 +3884,7 @@ async function cmdAdminCrm(ctx) {
3878
3884
  }
3879
3885
  default:
3880
3886
  throw new CliError(
3881
- "Usage: admin crm import|capture|outreach|signals|record|signal|accounts|account|score|slack-channels|link-slack|white-glove|set-white-glove|churn|revenue|reach-outs|replies|record-churn|draft-churn-reason|undo-churn|outcomes|record-outcome|renewals|track-record|weekly-note|at-risk|expansion-signals|collections|delivery-flags|pulse|client-health|case|onboard|onboarding|retry-onboarding|onboard-plan|prospect-org|prospect-orgs|payment-link … (see --help)"
3887
+ "Usage: admin crm import|capture|outreach|signals|record|signal|accounts|account|score|slack-channels|link-slack|white-glove|set-white-glove|churn|revenue|reach-outs|replies|record-churn|draft-churn-reason|undo-churn|outcomes|record-outcome|renewals|track-record|weekly-note|at-risk|expansion-signals|collections|delivery-flags|pulse|client-health|case|onboard|onboarding|retry-onboarding|onboard-plan|prospect-org|prospect-orgs|prospect-org-repost|payment-link … (see --help)"
3882
3888
  );
3883
3889
  }
3884
3890
  }
@@ -13,13 +13,15 @@ export const ARGS = {
13
13
  outcome: "outcome",
14
14
  lens: "lens",
15
15
  words: { value: (flags, positionals) => flagStr(flags.words) ?? (positionals.join(" ").trim() || undefined) },
16
+ // --web: read the web for a recipe the facts can't decide (off by default: facts only).
17
+ web: { flag: "web", type: "bool" },
16
18
  domain: "site",
17
19
  },
18
20
  };
19
21
 
20
22
  export async function cmdAsk(ctx) {
21
23
  const { client, flags, io } = ctx;
22
- refuseUnknownFlags(ctx, {}, ["outcome", "lens", "words", "site"]);
24
+ refuseUnknownFlags(ctx, {}, ["outcome", "lens", "words", "site", "web"]);
23
25
  const args = argsFromFlags(ARGS.ask_letterpress, flags, ctx.positionals, {});
24
26
  if ([args.outcome, args.lens, args.words].filter(Boolean).length > 1)
25
27
  throw new CliError("One ask at a time: --outcome, --lens fix|build, or your words.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.174.1",
3
+ "version": "0.174.3",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",