import { Command } from 'commander'; export declare const supplierSearchCommand: Command; /** * Build the JSON summary for supplier search results. * Inlines key fields (incl. url / shopUrl) so an LLM/agent can surface * clickable source links without reading the full cache file. The cache_file * pointer is kept for retrieving the complete payload. * * 这里必须内联「选供应商真正要看的字段」,不能只留价格和链接:skill 的 * `references/commands.md` 明令本命令**不许改去读缓存文件**(防编造 1688 链接), * 摘要漏掉的字段等于 agent 一条路都没有。实测后果:下游据此写出「成交/回头率 * 时有时无、凑不齐就多搜几次」的错误作业法,白跑一堆重复调用。 * * 成交(sales)× 回头率(returnRate)是货比三家的决定字段,两个都得给 —— * 只看回头率会选中「回头率高但成交个位数」的店。字段可选性来自上游 * (backend/src/types/supplier.ts 里全带 `?`),缺失一律显式给 null: * 键消失会让下游把「上游没给」误读成「命令不返回这个字段」。 * 字段路径与缓存文件保持一致,学会一处即可用另一处。 */ export declare function buildSupplierJsonSummary(response: any, cacheFile: string | null): { summary: { result_count: any; suppliers: any; }; cache_file: string | null; }; //# sourceMappingURL=supplier-search.d.ts.map