import { searchProducts } from "../services/wooProducts.js"; export async function handleSearchProducts({ tenantId, q = "", limit = "10", forceWoo = "0" }) { const { items, source } = await searchProducts({ tenantId, q, limit: parseInt(limit, 10) || 10, forceWoo: String(forceWoo) === "1" || String(forceWoo).toLowerCase() === "true", }); return { items, source }; }