@letterstory/cli 0.177.145 → 0.177.146

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.145";
96
+ export const VERSION = "0.177.146";
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;
@@ -11,7 +11,7 @@
11
11
  // letterstory usage posthog [status]|sync [--days 7]|disconnect the connection (never its key), sync now, remove it
12
12
  // letterstory usage database connect (--project <ref> --key <sbp_…> | --url postgres://… | --existing)
13
13
  // --host app.acme.com --schemas public --since … --until … Supabase or any Postgres
14
- // letterstory usage shown statistics shown to agents, and what agents get
14
+ // letterstory usage shown [--days 1-90] statistics shown to agents, what agents get, who read them
15
15
  // letterstory usage shown show|hide <choice_id> show a tracked action to agents, or take it off
16
16
  // letterstory usage shown pr [--repo <owner/name>] [--base <branch>] put them on the website: one build, one pull request
17
17
  // letterstory usage shown check [--url <page>] check a page serves them as the data says
@@ -86,7 +86,7 @@ export const ARGS = {
86
86
  engines: { value: (flags) => (flags.engines ? flagCsv(flags.engines) : undefined) },
87
87
  },
88
88
  stop_agent_test: { test_id: { positional: 0, required: true, label: "test_id" } },
89
- get_shown_statistics: {},
89
+ get_shown_statistics: { days: { flag: "days", type: "num" } },
90
90
  set_shown_statistic: {
91
91
  choice_id: { positional: 0, required: true, label: "choice_id" },
92
92
  shown: { value: (_flags, _positionals, extra) => extra.shown === true },
@@ -368,7 +368,11 @@ export async function cmdUsage(ctx) {
368
368
  const sub = ctx.positionals[1] ?? "status";
369
369
  const rest = ctx.positionals.slice(2);
370
370
  if (sub === "status") {
371
- printResult(io, flags, await client.callTool("get_shown_statistics", {}));
371
+ printResult(
372
+ io,
373
+ flags,
374
+ await client.callTool("get_shown_statistics", argsFromFlags(ARGS.get_shown_statistics, flags, rest))
375
+ );
372
376
  return 0;
373
377
  }
374
378
  if (sub === "show" || sub === "hide") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.145",
3
+ "version": "0.177.146",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",