refactor: drop dead model/limit plumbing and unused render helper

resolveSearchDefaults no longer accepts a per-call model override and
SearchParams no longer carries limit; neither was reachable from the
tool schema (limit is applied client-side in formatForLLM). Also fold
asPositiveNumber into asPositiveInteger and simplify recency matching.
This commit is contained in:
Ivan Pereira
2026-07-14 03:26:27 +01:00
parent 39d977c403
commit 5b6bb41c3f
8 changed files with 13 additions and 40 deletions
+1 -3
View File
@@ -9,18 +9,16 @@ const theme = {
} as any;
describe("renderPerplexityCall", () => {
test("shows the selected model in the tool call row", () => {
test("shows query filters in the tool call row", () => {
const rendered = renderPerplexityCall(
{
query: "latest Node release notes",
model: "claude46sonnetthinking",
recency: "week",
limit: 5,
},
theme,
).render(200).join("\n");
expect(rendered).toContain("claude46sonnetthinking");
expect(rendered).toContain("week");
expect(rendered).toContain("limit 5");
});