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:
@@ -38,7 +38,7 @@ describe("config pipeline seam", () => {
|
||||
function writeGlobal(content: Record<string, unknown>): void {
|
||||
const dir = join(agentDir, "extensions", "pi-permission-system");
|
||||
mkdirSync(dir, { recursive: true });
|
||||
writeFileSync(join(dir, "config.json"), JSON.stringify(content));
|
||||
writeFileSync(join(dir, "policy.jsonc"), JSON.stringify(content));
|
||||
}
|
||||
|
||||
it("a runtime knob survives the full pipeline", () => {
|
||||
@@ -99,7 +99,7 @@ describe("config pipeline seam", () => {
|
||||
const projectDir = join(cwd, ".pi", "extensions", "pi-permission-system");
|
||||
mkdirSync(projectDir, { recursive: true });
|
||||
writeFileSync(
|
||||
join(projectDir, "config.json"),
|
||||
join(projectDir, "policy.jsonc"),
|
||||
JSON.stringify({ toolInputPreviewMaxLength: 500 }),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user