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
+6
View File
@@ -64,6 +64,12 @@ describe("amazon-shopping CLI", () => {
assert.equal(parseCliRequest(["usb c cable", "--json", "--markdown"]).output, "both");
});
it("accepts max as a natural agent alias for limit", () => {
const request = parseCliRequest(["100w led bulbs", "--max", "5"]);
assert.equal(request.limit, 5);
});
it("normalizes natural-language filters for the target request", () => {
const request = parseCliRequest([
"100w led bulbs that cost less than $4 each and have over 200 reviews with a review score of more than 4.5 stars",