@letterstory/cli 0.177.108 → 0.177.109

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.109";
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;
@@ -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.109",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",