coder-config 0.41.2 → 0.41.4
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/lib/config.js +14 -0
- package/lib/constants.js +1 -1
- package/package.json +1 -1
- package/ui/dist/assets/{index-CGdqBV9k.js → index-CcGLeR7v.js} +189 -175
- package/ui/dist/assets/index-ClOpkZec.css +32 -0
- package/ui/dist/index.html +2 -2
- package/ui/routes/configs.js +73 -0
- package/ui/routes/projects.js +62 -1
- package/ui/server.cjs +29 -0
- package/ui/dist/assets/index-BX3EJoIY.css +0 -32
package/lib/config.js
CHANGED
|
@@ -52,10 +52,12 @@ function findAllConfigs(startDir = process.cwd()) {
|
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Merge multiple configs (later ones override earlier)
|
|
55
|
+
* Supports `exclude` array to block parent-enabled MCPs
|
|
55
56
|
*/
|
|
56
57
|
function mergeConfigs(configs) {
|
|
57
58
|
const merged = {
|
|
58
59
|
include: [],
|
|
60
|
+
exclude: [],
|
|
59
61
|
mcpServers: {},
|
|
60
62
|
enabledPlugins: {},
|
|
61
63
|
template: null
|
|
@@ -64,6 +66,15 @@ function mergeConfigs(configs) {
|
|
|
64
66
|
for (const { config } of configs) {
|
|
65
67
|
if (!config) continue;
|
|
66
68
|
|
|
69
|
+
// Collect excludes first (child can exclude parent MCPs)
|
|
70
|
+
if (config.exclude && Array.isArray(config.exclude)) {
|
|
71
|
+
for (const mcp of config.exclude) {
|
|
72
|
+
if (!merged.exclude.includes(mcp)) {
|
|
73
|
+
merged.exclude.push(mcp);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
67
78
|
if (config.include && Array.isArray(config.include)) {
|
|
68
79
|
for (const mcp of config.include) {
|
|
69
80
|
if (!merged.include.includes(mcp)) {
|
|
@@ -87,6 +98,9 @@ function mergeConfigs(configs) {
|
|
|
87
98
|
}
|
|
88
99
|
}
|
|
89
100
|
|
|
101
|
+
// Remove excluded MCPs from the final include list
|
|
102
|
+
merged.include = merged.include.filter(mcp => !merged.exclude.includes(mcp));
|
|
103
|
+
|
|
90
104
|
return merged;
|
|
91
105
|
}
|
|
92
106
|
|
package/lib/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coder-config",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.4",
|
|
4
4
|
"description": "Configuration manager for AI coding tools - Claude Code, Gemini CLI, Codex CLI, Antigravity. Manage MCPs, rules, permissions, memory, and workstreams.",
|
|
5
5
|
"author": "regression.io",
|
|
6
6
|
"main": "config-loader.js",
|