Refactored to use a build script

This commit is contained in:
2025-07-13 14:59:46 -04:00
parent fe4b3c3e1b
commit eeb611b7af
7 changed files with 383 additions and 330 deletions

15
src/main.js Normal file
View File

@ -0,0 +1,15 @@
async function main() {
console.log('Running artifact collector');
if (!ProjectDetector.isProjectChat()) {
console.log('Not in a project chat, 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);
}
}