Commit 88c1d00
committed
Enhance Go/Shell semantic analysis and add ContextBuilder
- Upgrade `GoParser` to use tree-sitter-go for deep extraction (structs, methods, complexity).
- Upgrade `ShellParser` to use tree-sitter-bash for function, variable, and command extraction.
- Implement `ContextBuilder` for token-aware context assembly with compression strategies.
- Update `GoSemanticSnapshotBuilder` and `ShellSemanticSnapshotBuilder` to populate new metadata.
- Add tree-sitter queries in `resources/queries/`.
- Add unit tests for parsers and context builder.1 parent a3c4245 commit 88c1d00
File tree
13 files changed
+1467
-134
lines changed- codesage
- analyzers
- llm
- semantic_digest
- resources/queries
- bash
- go
- tests/unit
- analyzers
- llm
13 files changed
+1467
-134
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
| 23 | + | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
| |||
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| 34 | + | |
| 35 | + | |
26 | 36 | | |
27 | 37 | | |
28 | 38 | | |
| 39 | + | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
32 | 43 | | |
33 | | - | |
| 44 | + | |
| 45 | + | |
34 | 46 | | |
35 | 47 | | |
36 | 48 | | |
0 commit comments