skiller 0.7.9 → 0.7.10
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.
|
@@ -374,11 +374,16 @@ async function handleMcpConfiguration(agent, agentConfig, config, skillerMcpJson
|
|
|
374
374
|
(0, constants_1.logVerbose)(`No compatible MCP servers found for ${agent.getName()} - skipping MCP configuration`, verbose);
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
|
-
await updateGitignoreForMcpFile(dest, projectRoot, generatedPaths, backup);
|
|
377
|
+
await updateGitignoreForMcpFile(dest, projectRoot, generatedPaths, agentConfig, backup);
|
|
378
378
|
await applyMcpConfiguration(agent, filteredMcpJson, // Safe: hasServers check above ensures this is non-null
|
|
379
379
|
dest, agentConfig, config, projectRoot, cliMcpStrategy, dryRun, verbose, backup);
|
|
380
380
|
}
|
|
381
|
-
async function updateGitignoreForMcpFile(dest, projectRoot, generatedPaths, backup = true) {
|
|
381
|
+
async function updateGitignoreForMcpFile(dest, projectRoot, generatedPaths, agentConfig, backup = true) {
|
|
382
|
+
// Only add to gitignore if agent config allows (defaults to true)
|
|
383
|
+
const shouldGitignore = agentConfig?.gitignore !== false;
|
|
384
|
+
if (!shouldGitignore) {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
382
387
|
if (dest.startsWith(projectRoot)) {
|
|
383
388
|
const relativeDest = path.relative(projectRoot, dest);
|
|
384
389
|
generatedPaths.push(relativeDest);
|