Skip to content

Fix/Treesitter improvement for Lite Lib version#462

Merged
RobertLD merged 3 commits intomainfrom
fix/export-treesitter-chunker
Mar 19, 2026
Merged

Fix/Treesitter improvement for Lite Lib version#462
RobertLD merged 3 commits intomainfrom
fix/export-treesitter-chunker

Conversation

@RobertLD
Copy link
Copy Markdown
Owner

No description provided.

RobertLD and others added 2 commits March 19, 2026 21:01
TreeSitterChunker was compiled but not re-exported from the ./lite
entry point, making it inaccessible to consumers using the package
exports map.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…#461)

Add `preChunked?: string[]` to `IndexDocumentInput` — when provided,
`indexDocument` skips the markdown chunker and uses the caller's chunks
directly.

`LibScopeLite.index()` now checks `doc.language`: if set and supported,
it pre-chunks the content with `TreeSitterChunker` and passes the result
as `preChunked`. Falls back silently to the text chunker on any error
(tree-sitter not installed, parse failure, etc.).

Consumers set `language: "cpp"` (or any supported alias) on their
`LiteDoc` and get function/class-boundary chunks automatically.
Docs updated to note this as the preferred approach over using
`TreeSitterChunker` directly.

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
libscope Ignored Ignored Preview Mar 19, 2026 9:27pm

@RobertLD RobertLD changed the title Fix/export treesitter chunker Fix/Treesitter improvement for Lite Lib version Mar 19, 2026
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@RobertLD RobertLD merged commit 6646997 into main Mar 19, 2026
10 checks passed
@RobertLD RobertLD deleted the fix/export-treesitter-chunker branch March 19, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant