mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-10-26 10:45:22 +00:00
refactor(permission-system): simplify policy and autoreview flow
This commit is contained in:
@@ -8,9 +8,7 @@ import {
|
||||
getGlobalLogsDir,
|
||||
getLegacyExtensionConfigPath,
|
||||
getLegacyGlobalPolicyPath,
|
||||
getLegacyProjectPolicyPath,
|
||||
getProjectAgentsDir,
|
||||
getProjectConfigPath,
|
||||
REVIEW_LOG_FILENAME,
|
||||
} from "#src/config-paths";
|
||||
|
||||
@@ -38,11 +36,6 @@ describe("config-paths", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("getProjectConfigPath returns .pi/extensions/pi-permission-system/policy.jsonc under cwd", () => {
|
||||
expect(getProjectConfigPath(cwd)).toBe(
|
||||
join(cwd, ".pi", "extensions", "pi-permission-system", "policy.jsonc"),
|
||||
);
|
||||
});
|
||||
|
||||
it("getProjectAgentsDir returns .pi/agents under cwd", () => {
|
||||
expect(getProjectAgentsDir(cwd)).toBe(join(cwd, ".pi", "agents"));
|
||||
@@ -56,11 +49,6 @@ describe("config-paths", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("getLegacyProjectPolicyPath returns .pi/agent/pi-permissions.jsonc under cwd", () => {
|
||||
expect(getLegacyProjectPolicyPath(cwd)).toBe(
|
||||
join(cwd, ".pi", "agent", "pi-permissions.jsonc"),
|
||||
);
|
||||
});
|
||||
|
||||
it("getLegacyExtensionConfigPath returns config.json under extensionRoot", () => {
|
||||
expect(getLegacyExtensionConfigPath(extensionRoot)).toBe(
|
||||
|
||||
Reference in New Issue
Block a user