fix(amazon-shopping): harden agent invocation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user