import yazl from "yazl"; /** 独立真实 ZIP 用于握手故障,不给产品增加测试专用入口。 */ export async function createMarketingTouchZip(html: Buffer) { const archive = new yazl.ZipFile(); archive.addBuffer(html, "index.html"); archive.end(); const chunks: Buffer[] = []; for await (const chunk of archive.outputStream) chunks.push(Buffer.from(chunk)); return Buffer.concat(chunks); } export async function createMarketingTouchFaultBundle() { return createMarketingTouchZip( Buffer.from(``), ); }