import { ProjectConfigService } from './ProjectConfigService.js'; import { GitService } from './GitService.js'; import { ToolResult } from '../types.js'; import { WorkspaceService } from './WorkspaceService.js'; export interface SecureCommandOptions { cwd?: string; timeout?: number; env?: NodeJS.ProcessEnv; skipAllowedCheck?: boolean; commitResult?: boolean; commitMessage?: string; stopOnError?: boolean; } export interface CommandResult { stdout: string; stderr: string; exitCode: number; command: string; executionTime: number; } export declare class SecureCommandService { private configService; private gitService; private workspaceService; constructor(configService: ProjectConfigService, gitService: GitService, workspaceService: WorkspaceService); /** * Execute a command with security restrictions */ runCommand(command: string, options?: SecureCommandOptions): Promise; /** * Run multiple commands in sequence */ runCommandSequence(commands: string[], options?: SecureCommandOptions): Promise; /** * Get list of allowed commands */ getAllowedCommands(): Promise; /** * Add a command to the allowed list */ addAllowedCommand(command: string): Promise; /** * Remove a command from the allowed list */ removeAllowedCommand(command: string): Promise; /** * Execute a custom tool defined in project config */ runCustomTool(toolName: string, args?: Record): Promise; } //# sourceMappingURL=SecureCommandService.d.ts.map