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
+3 -3
View File
@@ -7,9 +7,9 @@ import type { PermissionState } from "./types";
* Produces one rule:
* `{ surface: "*", pattern: "*", action: universalDefault, layer: "default" }`
*
* Per-surface catch-alls (`bash["*"]`, `mcp["*"]`, etc.) are expressed as
* regular config rules from `normalizeFlatConfig()` and sit at higher indices
* in the composed array, so they override this default via last-match-wins.
* Per-surface catch-alls (`bash["*"]`, `mcp["*"]`, etc.) are regular config
* rules. Their exact surface is selected before the universal fallback when the
* value-pattern specificity is tied.
*/
export function synthesizeDefaults(
universalDefault: PermissionState,