Expand description
§Collet
A collection of developer tools for code analysis and agent workflows.
This crate provides stable, unified APIs for analyzing and working with code repositories. Currently, it re-exports the treemap module for repository code structure mapping.
§Features
- treemap: Generate code structure maps using tree-sitter
§Example
ⓘ
use collet::treemap::{generate_map, Config, Language};
use std::path::Path;
let config = Config::default();
let map = generate_map(Path::new("."), config)?;
println!("Found {} files", map.files.len());Re-exports§
pub use collet_treemap as treemap;
Structs§
- Config
- Configuration for map generation
- File
Info - File
Range - File position information
- RepoMap
- Repository code map
- Symbol
- A code symbol in the repository
Enums§
- Language
- Supported programming languages
- MapError
- Errors that can occur during map generation
- Output
Format - Output format for generated maps
- Symbol
Kind - Kind of code symbol
Functions§
- generate_
map - Generate a code map for the given directory