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:
@@ -94,19 +94,6 @@ describe("config pipeline seam", () => {
|
||||
expect(config).not.toHaveProperty("toolTextSummaryMaxLength");
|
||||
});
|
||||
|
||||
it("project config still overrides a global deprecated cap in the merge", () => {
|
||||
writeGlobal({ toolInputPreviewMaxLength: 200 });
|
||||
const projectDir = join(cwd, ".pi", "extensions", "pi-permission-system");
|
||||
mkdirSync(projectDir, { recursive: true });
|
||||
writeFileSync(
|
||||
join(projectDir, "policy.jsonc"),
|
||||
JSON.stringify({ toolInputPreviewMaxLength: 500 }),
|
||||
);
|
||||
|
||||
const mergeResult = loadAndMergeConfigs(agentDir, cwd, extensionRoot);
|
||||
|
||||
expect(mergeResult.merged.toolInputPreviewMaxLength).toBe(500);
|
||||
});
|
||||
|
||||
it("defaults apply when config file is absent", () => {
|
||||
// No config files written — agentDir and cwd directories don't exist.
|
||||
|
||||
Reference in New Issue
Block a user