code-chunk
Brace-aware code chunker for RAG. Splits source on function/class boundaries via brace-depth tracking — no language parser needed.
use chunk;
let src = "fn a() { 1 }\nfn b() { 2 }";
let chunks = chunk;
Soft cap: oversize functions stay whole rather than splitting mid-body. Zero deps. MIT or Apache-2.0.