async function main() { console.log('Running artifact collector'); if (!ProjectMeta.isScrapable()) { console.log('Not in a scrapable context, exiting'); return; } try { const result = await ArtifactScraper.collectArtifacts(); ArtifactExporter.exportArtifacts(result.artifacts, result.fileMap); } catch (error) { console.error('Error during artifact collection and export:', error); } }