Skip to main content

pathfinder_search/
lib.rs

1//! Pathfinder Search — The Scout Engine.
2//!
3//! Provides Ripgrep-powered text search for the `search_codebase` MCP tool.
4//!
5//! # Architecture
6//!
7//! - [`Scout`] — testability trait (I/O boundary)
8//! - [`RipgrepScout`] — production implementation using the `grep-*` crate family
9//! - [`MockScout`] — test double for unit testing consumers
10//! - [`types`] — `SearchParams`, `SearchMatch`, `SearchResult`
11
12/// Mock module for testing purposes
13pub mod mock;
14/// The `ripgrep` module provides functionality for fast text searching using the ripgrep engine.
15pub mod ripgrep;
16/// Public module for searcher functionality.
17pub mod searcher;
18/// Module containing type definitions
19pub mod types;
20
21pub use mock::MockScout;
22pub use ripgrep::RipgrepScout;
23pub use searcher::Scout;
24pub use types::{SearchMatch, SearchParams, SearchResult};