Gemini CLI Core - Core functionality library for the open-source AI agent that brings the power of Gemini directly into your terminal.
Overall
score
87%
Evaluation — 87%
↑ 1.01xAgent success when using this tile
Build a command execution tool that safely runs shell commands with user approval and proper output handling.
@generates
/**
* Creates a command runner with safety features.
*
* @param {Object} options - Configuration options
* @param {Function} options.promptForApproval - Function that prompts user and returns boolean
* @param {number} [options.timeout=30000] - Command timeout in milliseconds
* @param {number} [options.maxOutputLength=500] - Maximum output length before truncation
* @returns {Object} Command runner instance
*/
function createCommandRunner(options) {
// Implementation here
}
/**
* CommandRunner instance methods
*/
class CommandRunner {
/**
* Execute a shell command with safety checks.
*
* @param {string} command - The shell command to execute
* @returns {Promise<Object>} Result object with { approved, executed, stdout, stderr, truncated, error }
*/
async execute(command) {
// Implementation here
}
}
module.exports = { createCommandRunner };Provides shell command execution capabilities with safety features.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-google--gemini-cli-coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10