Skip to content

feat(architecture): extract code2graph package and integrate with code2llm models - #21

Merged
tom-sapletta-com merged 1 commit into
mainfrom
ticket/013-extract-code2graph-package
Oct 2, 2026
Merged

tom-sapletta-com merged 1 commit into
mainfrom
ticket/013-extract-code2graph-package

Conversation

@tom-sapletta-com

Copy link
Copy Markdown
Contributor

Summary

  • Extracted domain data models and topology queries into standalone package code2graph (v0.1.0) under packages/code2graph.
  • code2graph provides:
    • Base models and dataclasses: AnalysisResult, FunctionInfo, ClassInfo, ModuleInfo, FlowNode, FlowEdge, Pattern, CodeSmell, Mutation, DataFlow, BaseModel.
    • In-memory graph traversal query engine: GraphQuery (BFS callers/callees, entry points, isolation).
  • Integrated into code2llm/core/models.py with transparent fallback to embedded dataclasses if code2graph is unavailable.
  • Fixed Rust call graph edge resolution to preserve unresolvable calls and retain caller declaration order for entry points.
  • Added code2graph to pyproject.toml optional dependencies ([project.optional-dependencies] graph) and dev dependencies.
  • All 355 pytest tests passing.

…e2llm models

Co-authored-by: Koru Agent <agent@coru.dev>
@tom-sapletta-com
tom-sapletta-com merged commit a68a2aa into main Oct 2, 2026
1 of 3 checks passed
@tom-sapletta-com
tom-sapletta-com deleted the ticket/013-extract-code2graph-package branch October 2, 2026 22:31
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