@letterstory/cli 0.177.179 → 0.177.181
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 +2 -1
- package/lib/commands/usage.mjs +5 -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.181";
|
|
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;
|
|
@@ -103,6 +103,7 @@ export const EXIT_PAYMENT_REQUIRED = 3;
|
|
|
103
103
|
// `negate` spelling) in a command's ARGS map must be listed; boolean-flags.test.ts enforces it.
|
|
104
104
|
export const BOOLEAN_FLAGS = new Set([
|
|
105
105
|
"background",
|
|
106
|
+
"directed",
|
|
106
107
|
"approve",
|
|
107
108
|
"update",
|
|
108
109
|
// repo list: open changes past --limit are listed unless --newest-only.
|
package/lib/commands/usage.mjs
CHANGED
|
@@ -53,6 +53,7 @@ const paymentScopeArgs = {
|
|
|
53
53
|
export const ARGS = {
|
|
54
54
|
list_evidence_snapshots: { site_id: { flag: "site" } },
|
|
55
55
|
draft_evidence_snapshot: {
|
|
56
|
+
tracking_from: { flag: "tracking-from" },
|
|
56
57
|
background: { flag: "background", type: "bool" },
|
|
57
58
|
reply: {
|
|
58
59
|
value: (flags) => {
|
|
@@ -95,6 +96,7 @@ export const ARGS = {
|
|
|
95
96
|
after: { flag: "after" },
|
|
96
97
|
limit: { flag: "limit", type: "num" },
|
|
97
98
|
},
|
|
99
|
+
review_usage_payments: { host: { flag: "host" } },
|
|
98
100
|
set_usage_payment_scope: paymentScopeArgs,
|
|
99
101
|
preview_usage_payment_scope: paymentScopeArgs,
|
|
100
102
|
get_agent_tests: { test_id: { positional: 0, label: "test_id" } },
|
|
@@ -152,6 +154,7 @@ export const ARGS = {
|
|
|
152
154
|
get_proof_database: {},
|
|
153
155
|
disconnect_proof_database: {},
|
|
154
156
|
generate_proof_actions: {
|
|
157
|
+
directed: { flag: "directed", type: "bool" },
|
|
155
158
|
window: { value: (flags) => ({ since: flags.since, until: flags.until }) },
|
|
156
159
|
focus: { flag: "focus" },
|
|
157
160
|
source: { flag: "source" },
|
|
@@ -453,10 +456,11 @@ export async function cmdUsage(ctx) {
|
|
|
453
456
|
preview: "preview_usage_payment_scope",
|
|
454
457
|
scope: "set_usage_payment_scope",
|
|
455
458
|
evidence: "get_usage_payment_evidence",
|
|
459
|
+
review: "review_usage_payments",
|
|
456
460
|
}[ctx.positionals[1] ?? "status"];
|
|
457
461
|
if (!tool)
|
|
458
462
|
throw new CliError(
|
|
459
|
-
"Use payments connect, status, discover, catalog, preview, scope, evidence, refresh or disconnect"
|
|
463
|
+
"Use payments connect, status, discover, catalog, preview, scope, evidence, review, refresh or disconnect"
|
|
460
464
|
);
|
|
461
465
|
printResult(io, flags, await client.callTool(tool, argsFromFlags(ARGS[tool], flags, [])));
|
|
462
466
|
return 0;
|