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 utility that searches through JavaScript project files and generates markdown reports.
.js extension in a project directory @test*.test.ts in a project directory @testfunction in JavaScript files @test@generates
/**
* Finds all files matching a glob pattern
*
* @param {string} directory - Directory to search
* @param {string} pattern - Glob pattern (e.g., "*.js", "**/*.test.ts")
* @returns {Promise<string[]>} Array of matching file paths
*/
async function globFiles(directory, pattern) {
// IMPLEMENTATION HERE
}
/**
* Searches for text pattern across files
*
* @param {string} directory - Directory to search
* @param {string} pattern - Text pattern to find
* @returns {Promise<Array<{file: string, matches: number}>>} Files with match counts
*/
async function grepPattern(directory, pattern) {
// IMPLEMENTATION HERE
}
/**
* Reads content from a file
*
* @param {string} filePath - Path to file
* @returns {Promise<string>} File content
*/
async function readFileContent(filePath) {
// IMPLEMENTATION HERE
}
/**
* Writes content to a new file
*
* @param {string} filePath - Path for new file
* @param {string} content - Content to write
* @returns {Promise<void>}
*/
async function writeNewFile(filePath, content) {
// IMPLEMENTATION HERE
}
/**
* Edits existing file by replacing text
*
* @param {string} filePath - Path to file
* @param {string} oldText - Text to find
* @param {string} newText - Replacement text
* @returns {Promise<void>}
*/
async function editExistingFile(filePath, oldText, newText) {
// IMPLEMENTATION HERE
}
module.exports = {
globFiles,
grepPattern,
readFileContent,
writeNewFile,
editExistingFile
};Provides file system operations including pattern matching, text search, and file manipulation.
@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