import { createDryRunMatchup, DryRunPublisher, finalizeDryRunMatchup, } from "./orchestrator"; const publisher = new DryRunPublisher(); const matchup = await createDryRunMatchup( [ { id: "nights", rating: 1548, matchupCount: 18, lastMatchedAt: null }, { id: "good-days", rating: 1531, matchupCount: 14, lastMatchedAt: null }, { id: "cuff-it", rating: 1512, matchupCount: 12, lastMatchedAt: null }, ], publisher, ); if (!matchup) throw new Error("At least two songs are required to make a matchup."); const result = await finalizeDryRunMatchup(publisher, matchup.recordUri, 12, 9); console.log(JSON.stringify({ matchup, result }, null, 2));