import { fetchLeads } from "../src/index.js"; const workflowId = process.argv[2] || "outreach-test-123"; const mode = process.argv[3] || "--dry-run"; const clientKey = process.argv[4] || ""; if (mode === "--live" && clientKey) { process.env.CLIENT_KEY = clientKey; } console.log("=== Email Content Compose - Test ==="); console.log(`Workflow: ${workflowId} Mode: ${mode}\n`); const isDryRun = mode !== "--live"; const result = await fetchLeads(workflowId, isDryRun); console.log(JSON.stringify(result, null, 2));