feat: Semantic Kernel Upgrade & Symbol Resolution#32
Conversation
…e resolution - Updated `Symbol` class in `codesage/analyzers/semantic/symbol_table.py` to include `tags`, `references`, and `is_exported`. - Updated `ASTNode` models in `codesage/analyzers/ast_models.py` to support `tags` and `is_exported`. - Enhanced `PythonParser` in `codesage/analyzers/python_parser.py` to extract semantic tags (e.g., `db_op`) and global variables. - Implemented `ReferenceResolver` in `codesage/analyzers/semantic/reference_resolver.py` for cross-file symbol linking. - Updated `DependencyAnalyzer` in `codesage/analyzers/semantic/dependency_analyzer.py` to utilize symbol resolution for finer-grained dependency graphs. - Added unit tests for symbol table extensions and reference resolution. - Updated `PythonSemanticSnapshotBuilder` to include variables in snapshots.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
This PR implements Phase 1 of the Semantic Kernel Upgrade. It introduces a richer Symbol Table that tracks references, types, and semantic tags. It also adds a ReferenceResolver to link symbols across files, enhancing the dependency analysis from file-level to symbol-level. The Python parser has been upgraded to extract semantic tags (identifying DB operations, network calls, etc.) and global variables. These changes provide a foundation for more advanced risk scoring and smart compression in future phases.
PR created automatically by Jules for task 2025908824692924860 started by @turtacn