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
@@ -26,9 +26,9 @@ describe("config-paths", () => {
);
});
it("getGlobalConfigPath returns config.json under the global config dir", () => {
it("getGlobalConfigPath returns policy.jsonc under the global config dir", () => {
expect(getGlobalConfigPath(agentDir)).toBe(
join(agentDir, "extensions", "pi-permission-system", "config.json"),
join(agentDir, "extensions", "pi-permission-system", "policy.jsonc"),
);
});
@@ -38,9 +38,9 @@ describe("config-paths", () => {
);
});
it("getProjectConfigPath returns .pi/extensions/pi-permission-system/config.json under cwd", () => {
it("getProjectConfigPath returns .pi/extensions/pi-permission-system/policy.jsonc under cwd", () => {
expect(getProjectConfigPath(cwd)).toBe(
join(cwd, ".pi", "extensions", "pi-permission-system", "config.json"),
join(cwd, ".pi", "extensions", "pi-permission-system", "policy.jsonc"),
);
});