@letterstory/cli 0.177.179 → 0.177.180
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 +1 -1
- package/lib/commands/usage.mjs +3 -1
- package/package.json +1 -1
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.
|
|
96
|
+
export const VERSION = "0.177.180";
|
|
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;
|
package/lib/commands/usage.mjs
CHANGED
|
@@ -95,6 +95,7 @@ export const ARGS = {
|
|
|
95
95
|
after: { flag: "after" },
|
|
96
96
|
limit: { flag: "limit", type: "num" },
|
|
97
97
|
},
|
|
98
|
+
review_usage_payments: { host: { flag: "host" } },
|
|
98
99
|
set_usage_payment_scope: paymentScopeArgs,
|
|
99
100
|
preview_usage_payment_scope: paymentScopeArgs,
|
|
100
101
|
get_agent_tests: { test_id: { positional: 0, label: "test_id" } },
|
|
@@ -453,10 +454,11 @@ export async function cmdUsage(ctx) {
|
|
|
453
454
|
preview: "preview_usage_payment_scope",
|
|
454
455
|
scope: "set_usage_payment_scope",
|
|
455
456
|
evidence: "get_usage_payment_evidence",
|
|
457
|
+
review: "review_usage_payments",
|
|
456
458
|
}[ctx.positionals[1] ?? "status"];
|
|
457
459
|
if (!tool)
|
|
458
460
|
throw new CliError(
|
|
459
|
-
"Use payments connect, status, discover, catalog, preview, scope, evidence, refresh or disconnect"
|
|
461
|
+
"Use payments connect, status, discover, catalog, preview, scope, evidence, review, refresh or disconnect"
|
|
460
462
|
);
|
|
461
463
|
printResult(io, flags, await client.callTool(tool, argsFromFlags(ARGS[tool], flags, [])));
|
|
462
464
|
return 0;
|