Defines serializable structs for ripgrep and fuzzy search arguments and results, used to pass search parameters and results between components.
// Source: https://github.com/xai-org/grok-build | License: Apache-2.0 | Copyright 2023-2026 SpaceXAI
// Provided via justclaw.it.com; keep this notice with the code.
//! Minimal serializable search-related shapes (ripgrep and fuzzy file search).
//!
//! TODO(workspace): align with the canonical ripgrep / fuzzy types in
//! `xai_grok_shell::file_system` when the search subsystem moves
//! into the workspace crate.
use serde::{Deserialize, Serialize};
/// Arguments for a `Ripgrep` request.
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct RipgrepArgs {
/// Regex pattern.
pub pattern: String,
/// Optional working directory (relative to workspace root).
#[serde(default)]
pub cwd: Option<String>,
/// Glob filters (positive and negative
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key