@grundy40/contextslice 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  `ContextSlice` builds a lightweight local call graph of your repository, keeps **focal target functions complete**, folds direct `1-hop` / `2-hop` neighbors into **signature-only skeletons**, and drops unrelated noise — cutting token costs dramatically with **zero runtime dependencies**.
6
6
 
7
7
  - **Zero runtime `dependencies`**: Uses only Node.js built-ins + an embedded `web-tree-sitter` WASM runtime with lazy grammar caching (`~/.contextslice/parsers/`) and automatic offline state-machine fallback.
8
- - **Multi-Language Structural Parsing & Config Windowing**: Supports TypeScript/JavaScript, Python (including method-level `ClassName.methodName` extraction & structural class skeletons), Go, Rust, Java, Kotlin, C#, C/C++, Swift, PHP, Ruby, SQL, and plain-text configs (`.json`, `.yaml`, `.yml`, `.toml`, `.ini`, `.cfg`, `.conf`, `.xml`, `.properties`, `.txt`) with automatic ±40-line local window truncation for configs over 200 lines.
9
- - **Focal-First Source Priority, Dual-State File Tree & XML Boundary Tags**: Prioritizes direct-hit core source implementations as `<focal>` ahead of `docs/**` and `tests/**` with per-slice doc/test caps, deduplicates Markdown rendering, returns explicit `file_tree_empty_query` and `file_tree_zero_matches` modes with `<note>` guidance, annotates `<file total_lines="..." shown_lines="...">` ranges, enforces strict on-demand blanking, and filters conversational stopwords safely.
8
+ - **Multi-Language Structural Parsing, HTML Inline `<script>` & Single-File Slicing**: Supports TypeScript/JavaScript, Python (including method-level `ClassName.methodName` extraction & structural class skeletons), Go, Rust, Java, Kotlin, C#, C/C++, Swift, PHP, Ruby, SQL, HTML (landmark sections + inline `<script>` symbols + oversized `<style>`/section windowing), and plain-text configs (`.json`, `.yaml`, `.yml`, `.toml`, `.ini`, `.cfg`, `.conf`, `.xml`, `.properties`, `.txt`) with automatic ±40-line local window truncation for configs over 200 lines. Supports directory repositories and single-file targets via MCP `subPath`/`projectPath` or CLI `--root`/`--sub`.
9
+ - **Focal-First Source Priority, Dual-State File Tree & XML Boundary Tags**: Prioritizes direct-hit core source implementations as `<focal>` ahead of `docs/**` and `tests/**` with per-slice doc/test caps, deduplicates Markdown rendering, returns explicit `file_tree_empty_query` and `file_tree_zero_matches` modes with `<note>` guidance (or direct `single-file-slice` on empty-query single files), annotates `<file total_lines="..." shown_lines="...">` ranges, enforces strict on-demand blanking, and filters conversational stopwords safely.
10
10
  - **32K Benchmark Proven (`32,768` Default Budget)**: Evaluated on Hono (TS), HTTPX (Py), and Gin (Go) open-source repos with **85.1% token savings** and **100% refactoring pass rate** at the unified 32K default budget.
11
11
 
12
12
  ---