Update apply-config.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Steven Mosley 2025-09-22 05:54:00 -05:00 committed by GitHub
parent 99d7c8cefc
commit 60545b9cd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -229,10 +229,14 @@ function copyFile(sourcePath, destPath) {
} }
/** /**
* Clean up files that are no longer enabled (requirement #3) * Cleans up files in the output directory that are no longer enabled.
*
* @param {string} outputDir - The root directory where generated files are stored.
* @param {Object} effectivelyEnabledSets - An object mapping section names to Sets of enabled item names.
* @param {string} rootDir - The root directory of the project (used for path resolution).
* @returns {Object} Summary of the number of files removed per section.
*/ */
function cleanupDisabledFiles(outputDir, effectivelyEnabledSets, rootDir) { function cleanupDisabledFiles(outputDir, effectivelyEnabledSets, rootDir) {
const cleanupSummary = {
prompts: 0, prompts: 0,
instructions: 0, instructions: 0,
chatmodes: 0 chatmodes: 0