pub fn pack(
dir: &Path,
format_str: &str,
max_tokens: Option<usize>,
options: PackOptions,
) -> Result<String>Expand description
Bundles all indexed files in dir into a single AI-friendly document in Markdown or XML format.
Automatically re-indexes dir before packing; pass max_tokens to enable token-budget degradation that drops file bodies when the limit is exceeded.