build cleans first
This commit is contained in:
@@ -519,9 +519,32 @@ class WebBuilder {
|
|||||||
* Ensure sample update directory exists
|
* Ensure sample update directory exists
|
||||||
*/
|
*/
|
||||||
ensureSampleUpdateDirectory() {
|
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(this.sampleUpdatePath);
|
||||||
this.ensureDirectory(path.join(this.sampleUpdatePath, 'teams'));
|
this.ensureDirectory(teamsDir);
|
||||||
this.ensureDirectory(path.join(this.sampleUpdatePath, 'agents'));
|
this.ensureDirectory(agentsDir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Bundle: Team All -->
|
<!-- Bundle: Team All -->
|
||||||
<!-- Generated: 2025-06-09T03:59:32.709Z -->
|
<!-- Generated: 2025-06-09T04:05:51.750Z -->
|
||||||
<!-- Environment: web -->
|
<!-- Environment: web -->
|
||||||
|
|
||||||
==================== START: agent-config ====================
|
==================== START: agent-config ====================
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Bundle: Team Fullstack -->
|
<!-- Bundle: Team Fullstack -->
|
||||||
<!-- Generated: 2025-06-09T03:59:32.719Z -->
|
<!-- Generated: 2025-06-09T04:05:51.754Z -->
|
||||||
<!-- Environment: web -->
|
<!-- Environment: web -->
|
||||||
|
|
||||||
==================== START: agent-config ====================
|
==================== START: agent-config ====================
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Bundle: Team No UI -->
|
<!-- Bundle: Team No UI -->
|
||||||
<!-- Generated: 2025-06-09T03:59:32.721Z -->
|
<!-- Generated: 2025-06-09T04:05:51.757Z -->
|
||||||
<!-- Environment: web -->
|
<!-- Environment: web -->
|
||||||
|
|
||||||
==================== START: agent-config ====================
|
==================== START: agent-config ====================
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Bundle: Team Scrum -->
|
<!-- Bundle: Team Scrum -->
|
||||||
<!-- Generated: 2025-06-09T03:59:32.723Z -->
|
<!-- Generated: 2025-06-09T04:05:51.759Z -->
|
||||||
<!-- Environment: web -->
|
<!-- Environment: web -->
|
||||||
|
|
||||||
==================== START: agent-config ====================
|
==================== START: agent-config ====================
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Bundle: team-technical -->
|
<!-- Bundle: team-technical -->
|
||||||
<!-- Generated: 2025-06-09T03:59:32.724Z -->
|
<!-- Generated: 2025-06-09T04:05:51.761Z -->
|
||||||
<!-- Environment: web -->
|
<!-- Environment: web -->
|
||||||
|
|
||||||
==================== START: agent-config ====================
|
==================== START: agent-config ====================
|
||||||
|
|||||||
Reference in New Issue
Block a user