CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-google--gemini-cli-core

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%

Evaluation87%

1.01x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-6/

Code Search and Report Tool

Build a utility that searches through JavaScript project files and generates markdown reports.

Capabilities

Pattern-based File Discovery

  • Finds all JavaScript files with .js extension in a project directory @test
  • Finds all test files matching pattern *.test.ts in a project directory @test

Text Pattern Search

  • Searches for TODO comments (containing the word "TODO") across all files @test
  • Searches for function definitions matching pattern function in JavaScript files @test

File Content Operations

  • Reads a package.json file and returns its content as a string @test
  • Creates a new markdown report file with search results @test
  • Updates an existing report by replacing a specific section @test

Implementation

@generates

API

/**
 * 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
};

Dependencies { .dependencies }

File System Operations { .dependency }

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-core

tile.json