mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-10-26 18:55:22 +00:00
refactor(permission-system): simplify policy and autoreview flow
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user