build cleans first

This commit is contained in:
Brian Madison
2025-06-08 23:06:21 -05:00
parent 6251fd9f9d
commit f62a8202a0
6 changed files with 30 additions and 7 deletions

View File

@@ -519,9 +519,32 @@ class WebBuilder {
* Ensure sample update directory exists
*/
ensureSampleUpdateDirectory() {
// Clean existing files in web-bundles subdirectories
const teamsDir = path.join(this.sampleUpdatePath, 'teams');
const agentsDir = path.join(this.sampleUpdatePath, 'agents');
// Remove existing .txt files in teams directory
if (fs.existsSync(teamsDir)) {
const teamFiles = fs.readdirSync(teamsDir).filter(f => f.endsWith('.txt'));
teamFiles.forEach(file => {
fs.unlinkSync(path.join(teamsDir, file));
});
console.log(`🧹 Cleaned ${teamFiles.length} files from web-bundles/teams`);
}
// Remove existing .txt files in agents directory
if (fs.existsSync(agentsDir)) {
const agentFiles = fs.readdirSync(agentsDir).filter(f => f.endsWith('.txt'));
agentFiles.forEach(file => {
fs.unlinkSync(path.join(agentsDir, file));
});
console.log(`🧹 Cleaned ${agentFiles.length} files from web-bundles/agents`);
}
// Ensure directories exist
this.ensureDirectory(this.sampleUpdatePath);
this.ensureDirectory(path.join(this.sampleUpdatePath, 'teams'));
this.ensureDirectory(path.join(this.sampleUpdatePath, 'agents'));
this.ensureDirectory(teamsDir);
this.ensureDirectory(agentsDir);
}
}

View File

@@ -87,7 +87,7 @@
<!-- Bundle: Team All -->
<!-- Generated: 2025-06-09T03:59:32.709Z -->
<!-- Generated: 2025-06-09T04:05:51.750Z -->
<!-- Environment: web -->
==================== START: agent-config ====================

View File

@@ -67,7 +67,7 @@
<!-- Bundle: Team Fullstack -->
<!-- Generated: 2025-06-09T03:59:32.719Z -->
<!-- Generated: 2025-06-09T04:05:51.754Z -->
<!-- Environment: web -->
==================== START: agent-config ====================

View File

@@ -61,7 +61,7 @@
<!-- Bundle: Team No UI -->
<!-- Generated: 2025-06-09T03:59:32.721Z -->
<!-- Generated: 2025-06-09T04:05:51.757Z -->
<!-- Environment: web -->
==================== START: agent-config ====================

View File

@@ -60,7 +60,7 @@
<!-- Bundle: Team Scrum -->
<!-- Generated: 2025-06-09T03:59:32.723Z -->
<!-- Generated: 2025-06-09T04:05:51.759Z -->
<!-- Environment: web -->
==================== START: agent-config ====================

View File

@@ -58,7 +58,7 @@
<!-- Bundle: team-technical -->
<!-- Generated: 2025-06-09T03:59:32.724Z -->
<!-- Generated: 2025-06-09T04:05:51.761Z -->
<!-- Environment: web -->
==================== START: agent-config ====================