Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import { Tool, ToolResult, ToolInvocation } from '../types/Tool';
import { PermissionLevel } from '../types/Permission';
export interface IToolManager {
// Tool registration
registerTool(name: string, tool: Tool): void;
registerDefaultTools(): Promise<void>;
getRegisteredTools(): string[];
// Tool invocation
invokeTool(name: string, args: any): Promise<ToolResult>;
// Permission management
checkPermission(tool: string, action: string): boolean;
setPermissionLevel(level: PermissionLevel): void;
// History and logging
getInvocationHistory(): ToolInvocation[];
clearHistory(): void;
// Lifecycle
dispose(): void;
} |