@letterstory/cli 0.177.96 → 0.177.98

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.96";
94
+ export const VERSION = "0.177.98";
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;
@@ -1592,7 +1592,7 @@ Org (the account as one file, its integrations and billing):
1592
1592
  admins for more
1593
1593
  org billing usage This period by product and collection: quantities,
1594
1594
  and tokens and dollars when billed by usage
1595
- org billing rewards [claim <action>] Free tokens for connecting Slack, signing in with the
1595
+ org billing rewards [claim <action>] Free tokens for connecting GitHub, signing in with the
1596
1596
  CLI and following Letter; claim one, once per org
1597
1597
  org billing invoices Every invoice (paid, open, failed, refunded) and the
1598
1598
  next one: when it issues and what it comes to
@@ -2155,6 +2155,7 @@ Refs (Visual Refs: other companies' brands to design something new after, apart
2155
2155
 
2156
2156
  Usage data (what signed-in people do in your own app):
2157
2157
  usage proofs [--id <id>] Read saved proof analysis
2158
+ usage proof-audit [--id <run>] [--org-id <org>] Passed/not-passed suggestion history
2158
2159
  usage find-proofs --since <ISO> --until <ISO> [--focus <text>] Analyze actions
2159
2160
  usage review-proof --analysis-id <id> --card-id <id> --decision approved|dismissed
2160
2161
  usage instrument --action <words> [--event <name>] [--owner <o> --repo <r>] PR that records an action
@@ -79,6 +79,18 @@ export const ARGS = {
79
79
  },
80
80
  refresh_proof_actions: {},
81
81
  get_proof_actions: { id: { flag: "id" } },
82
+ get_proof_action_audit: {
83
+ id: { flag: "id" },
84
+ org_id: { flag: "org-id" },
85
+ limit: { value: (flags) => (flags.limit === undefined ? undefined : Number(flags.limit)) },
86
+ before: {
87
+ value: (flags) => {
88
+ const created_at = flags.before;
89
+ const id = flags["before-id"];
90
+ return created_at ? { created_at, id } : undefined;
91
+ },
92
+ },
93
+ },
82
94
  decide_proof_action: {
83
95
  analysis_id: { flag: "analysis-id" },
84
96
  card_id: { flag: "card-id" },
@@ -300,9 +312,14 @@ export async function cmdUsage(ctx) {
300
312
  printResult(io, flags, await client.callTool(tool, argsFromFlags(ARGS[tool], flags, [])));
301
313
  return 0;
302
314
  }
303
- if (["proofs", "find-proofs", "review-proof", "refresh-proofs", "compare-proofs"].includes(ctx.positionals[0])) {
315
+ if (
316
+ ["proofs", "proof-audit", "find-proofs", "review-proof", "refresh-proofs", "compare-proofs"].includes(
317
+ ctx.positionals[0]
318
+ )
319
+ ) {
304
320
  const tool = {
305
321
  proofs: "get_proof_actions",
322
+ "proof-audit": "get_proof_action_audit",
306
323
  "compare-proofs": "compare_proof_actions",
307
324
  "refresh-proofs": "refresh_proof_actions",
308
325
  "find-proofs": "generate_proof_actions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/cli",
3
- "version": "0.177.96",
3
+ "version": "0.177.98",
4
4
  "description": "Spin up and manage Letter phantom blogs from your terminal.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",