fix(amazon-shopping): harden agent invocation

This commit is contained in:
2026-04-15 19:09:52 -05:00
parent c1286e9c42
commit 4204d28077
4 changed files with 21 additions and 13 deletions
+3 -2
View File
@@ -25,7 +25,7 @@ Usage:
Options:
--json Print JSON output
--markdown Print markdown output
--limit N Maximum products to return (default: 15)
--limit N, --max N Maximum products to return (default: 15)
--allow-large-limit Permit limits above 30
--min-rating N Minimum rating score
--min-reviews N Minimum review count
@@ -70,13 +70,14 @@ export function parseCliRequest(argv: string[]): SearchProductsRequest {
string: [
"query",
"limit",
"max",
"min-rating",
"min-reviews",
"max-price",
"max-unit-price",
"max-search-pages"
],
alias: { h: "help" }
alias: { h: "help", max: "limit" }
});
const rawQuery = String(args.query ?? args._.join(" ")).trim();