mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-10-26 10:45:22 +00:00
feat(permission): integrate auto-review and hard guards
This commit is contained in:
@@ -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"),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user