feat(permission): integrate auto-review and hard guards

This commit is contained in:
云服务部-叶林立
2026-09-02 15:34:29 +08:00
parent a4807dde67
commit 180da95ab7
79 changed files with 4263 additions and 9203 deletions
+10
View File
@@ -260,6 +260,16 @@ export function mergeUnifiedConfigs(
) as ShellToolsConfig;
}
// Built-in AutoReview and analyzer objects merge field-by-field so a project
// may narrow runtime settings without erasing global defaults.
for (const key of ["autoReview", "analysis"] as const) {
const baseValue = base[key];
const overrideValue = override[key];
if (baseValue !== undefined || overrideValue !== undefined) {
merged[key] = { ...baseValue, ...overrideValue };
}
}
// Permission: deep-shallow merge
const basePerm = base.permission;
const overridePerm = override.permission;