Commit f865abc
committed
feat(05-01): create AST-aligned chunking engine with symbol tree builder
- Add src/utils/ast-chunker.ts with buildSymbolTree, generateASTChunks,
mergeSmallSymbolChunks, splitOversizedChunks, createASTAlignedChunks
- Add typed symbol metadata fields to ChunkMetadata in types/index.ts
(symbolAware, symbolName, symbolKind, symbolPath, parentSymbol, chunkStrategy)
- Leaf symbols become single chunks, containers split at method boundaries
- Gap/filler chunks cover regions between symbols for full file coverage
- Safe split points at blank lines, comments, closing braces1 parent 2559405 commit f865abc
2 files changed
+499
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| |||
0 commit comments