devscout_rs/lib.rs
1//! Library support for the `devscout` code-indexing CLI.
2//!
3//! The parsing and extraction modules turn source files into fragments, the
4//! graph and resolution modules connect those fragments, and the query and
5//! rendering modules produce command results. The remaining modules locate
6//! repositories, persist artifacts, and implement CLI commands and hooks.
7
8/// Command-line argument parsing and dispatch.
9pub mod cli;
10/// C# and TypeScript declaration and reference extraction.
11pub mod extract;
12/// Persisted graph and fragment data structures.
13pub mod graph;
14/// Agent-hook input processing.
15pub mod hookio;
16/// Repository initialization commands.
17pub mod initcmd;
18/// Manifest persistence, search, and index-freshness checks.
19pub mod manifest;
20/// Repository mapping and incremental fragment-cache updates.
21pub mod mapcmd;
22/// XAML and XML markup declaration and reference extraction.
23pub mod markup;
24/// Tree-sitter parsing and source-span collection.
25pub mod parse;
26/// Graph queries and their result models.
27pub mod query;
28/// Text rendering for query results.
29pub mod render;
30/// Repository discovery and registry access.
31pub mod repo;
32/// Resolution of extracted C# fragments into a graph.
33pub mod resolve;
34/// SQLite-backed hook freshness and content stores.
35pub mod store;
36/// Symbol-name suggestions for unsuccessful queries.
37pub mod suggest;
38/// Resolution of extracted TypeScript fragments into a graph.
39pub mod tsgraph;
40/// Source-tree walking and default file-purpose generation.
41pub mod walk;
42
43// Off every code path today: the crate feeds the grammar a UTF-16 view of
44// source, so tree-sitter node offsets already arrive as UTF-16 and
45// `parse::utf16_index` halves them instead of translating. Kept as a
46// unit-tested helper for a future caller that has to cross a UTF-8 buffer back
47// into that offset convention.
48/// UTF-8 to UTF-16 source-offset conversion.
49pub mod offsets;