llm_coding_tools_core/operations/
mod.rs

1//! Core operations for file systems and utilities.
2//!
3//! This module contains framework-agnostic implementations of:
4//! - File operations (read, write, edit, glob, grep, bash, todo) - always available
5//! - Web fetching (fetch_url) - requires `async` or `blocking` feature
6
7// Always available (sync or async based on runtime feature)
8pub mod bash;
9pub mod edit;
10pub mod glob;
11pub mod grep;
12pub mod read;
13pub mod todo;
14pub mod write;
15
16pub use bash::{execute_command, BashOutput};
17pub use edit::{edit_file, EditError};
18pub use glob::{glob_files, GlobOutput};
19pub use grep::{grep_search, GrepFileMatches, GrepLineMatch, GrepOutput, DEFAULT_MAX_LINE_LENGTH};
20pub use read::read_file;
21pub use todo::{read_todos, write_todos, Todo, TodoPriority, TodoState, TodoStatus};
22pub use write::write_file;
23
24// Webfetch available in both async and blocking modes
25#[cfg(any(feature = "async", feature = "blocking"))]
26pub mod webfetch;
27
28#[cfg(any(feature = "async", feature = "blocking"))]
29pub use webfetch::{fetch_url, format_json, html_to_markdown, WebFetchOutput};