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