/** * terminal-tools-core.ts - Shared types, storage paths, opt-in gate, and * env-var filtering for the terminal_* MCP tools. */ /** A single recorded command execution within a terminal session. */ interface TerminalHistoryEntry { command: string; output: string; timestamp: string; exitCode: number; } /** Persistent state for one terminal session. */ export interface TerminalSession { id: string; name: string; status: string; createdAt: string; lastActivity: string; workingDir: string; history: TerminalHistoryEntry[]; env: Record; } /** On-disk shape of the terminal store. */ interface TerminalStore { sessions: Record; version: string; } /** Shape of errors thrown by execSync when a command fails. */ export interface ExecError { stdout?: string | Buffer; stderr?: string | Buffer; status?: number | null; } /** Returns a copy of `env` with secret-shaped variable names removed. */ export declare function filterSecretEnvVars(env: NodeJS.ProcessEnv): Record; export declare function isExecuteEnabled(): boolean; /** True if a (no-longer-honoured) in-project flag file exists. Used only to * make the refusal error actionable for a legitimate user — never to grant * execution, and its content is never inspected. */ export declare function isProjectFlagFilePresent(): boolean; export declare function loadTerminalStoreOrNull(): TerminalStore | null; export declare function loadTerminalStore(): TerminalStore; export declare function saveTerminalStore(store: TerminalStore): void; export {}; //# sourceMappingURL=terminal-tools-core.d.ts.map