skiller 0.7.7 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/apply-engine.js +10 -6
- package/package.json +1 -1
|
@@ -292,14 +292,18 @@ _skillsEnabled = true, ruleFiles, skillerDir) {
|
|
|
292
292
|
(0, constants_1.logInfo)(`Applying rules for ${agent.getName()}...`, dryRun);
|
|
293
293
|
(0, constants_1.logVerbose)(`Processing agent: ${agent.getName()}`, verbose);
|
|
294
294
|
const agentConfig = config.agentConfigs[agent.getIdentifier()];
|
|
295
|
-
// Collect output paths for .gitignore
|
|
295
|
+
// Collect output paths for .gitignore (unless agent config disables it)
|
|
296
296
|
const outputPaths = (0, agent_utils_1.getAgentOutputPaths)(agent, projectRoot, agentConfig);
|
|
297
297
|
(0, constants_1.logVerbose)(`Agent ${agent.getName()} output paths: ${outputPaths.join(', ')}`, verbose);
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
if (
|
|
301
|
-
|
|
302
|
-
|
|
298
|
+
// Only add to gitignore if agent config allows (defaults to true)
|
|
299
|
+
const shouldGitignore = agentConfig?.gitignore !== false;
|
|
300
|
+
if (shouldGitignore) {
|
|
301
|
+
generatedPaths.push(...outputPaths);
|
|
302
|
+
// Only add the backup file paths to the gitignore list if backups are enabled
|
|
303
|
+
if (backup) {
|
|
304
|
+
const backupPaths = outputPaths.map((p) => `${p}.bak`);
|
|
305
|
+
generatedPaths.push(...backupPaths);
|
|
306
|
+
}
|
|
303
307
|
}
|
|
304
308
|
if (dryRun) {
|
|
305
309
|
(0, constants_1.logVerbose)(`DRY RUN: Would write rules to: ${outputPaths.join(', ')}`, verbose);
|