refactor(permission-system): simplify policy and autoreview flow

This commit is contained in:
云服务部-叶林立
2026-09-03 02:01:06 +08:00
parent 180da95ab7
commit 6e7effa792
112 changed files with 911 additions and 10346 deletions
@@ -90,7 +90,6 @@ export class HardGuardPolicyLoader implements PolicyLoader {
return DENY_ALL;
}
loadProjectConfig(): ScopeConfig { return EMPTY_SCOPE; }
loadAgentConfig(): ScopeConfig { return EMPTY_SCOPE; }
loadProjectAgentConfig(): ScopeConfig { return EMPTY_SCOPE; }
getConfiguredMcpServerNames(): readonly string[] { return []; }
@@ -114,8 +113,6 @@ export class HardGuardPolicyLoader implements PolicyLoader {
return {
globalConfigPath: this.userPath,
globalConfigExists: existsSync(this.userPath),
projectConfigPath: null,
projectConfigExists: false,
agentsDir: dirname(this.userPath),
agentsDirExists: existsSync(dirname(this.userPath)),
projectAgentsDir: null,