refactor(permission-system): simplify policy and autoreview flow

This commit is contained in:
云服务部-叶林立
2026-09-03 02:01:06 +08:00
parent 180da95ab7
commit 6e7effa792
112 changed files with 911 additions and 10346 deletions
+1 -4
View File
@@ -1,12 +1,9 @@
import { getNonEmptyString, toRecord } from "./value-guards";
/** Narrow interface for the Pi tool API subset used by handler classes. */
/** Narrow interface for the read-only Pi tool registry used by the gate. */
export interface ToolRegistry {
/** All registered tools (`pi.getAllTools()` — `ToolInfo[]`); kept defensively wide. */
getAll(): unknown[];
/** Currently active tool names (`pi.getActiveTools()`). */
getActive(): string[];
setActive(names: string[]): void;
}
export type ToolRegistrationCheckResult =