codegraphcontext 0.2.11__tar.gz → 0.2.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. {codegraphcontext-0.2.11/src/codegraphcontext.egg-info → codegraphcontext-0.2.12}/PKG-INFO +2 -2
  2. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/README.md +1 -1
  3. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/pyproject.toml +1 -1
  4. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/handlers/management_handlers.py +31 -40
  5. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12/src/codegraphcontext.egg-info}/PKG-INFO +2 -2
  6. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/LICENSE +0 -0
  7. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/MANIFEST.in +0 -0
  8. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/setup.cfg +0 -0
  9. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/__init__.py +0 -0
  10. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/__main__.py +0 -0
  11. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/__init__.py +0 -0
  12. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/cli_helpers.py +0 -0
  13. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/config_manager.py +0 -0
  14. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/main.py +0 -0
  15. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/registry_commands.py +0 -0
  16. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/setup_macos.py +0 -0
  17. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/setup_wizard.py +0 -0
  18. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/cli/visualizer.py +0 -0
  19. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/__init__.py +0 -0
  20. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/bundle_registry.py +0 -0
  21. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/cgc_bundle.py +0 -0
  22. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/database.py +0 -0
  23. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/database_falkordb.py +0 -0
  24. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/database_falkordb_remote.py +0 -0
  25. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/database_kuzu.py +0 -0
  26. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/falkor_worker.py +0 -0
  27. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/jobs.py +0 -0
  28. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/core/watcher.py +0 -0
  29. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/prompts.py +0 -0
  30. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/server.py +0 -0
  31. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tool_definitions.py +0 -0
  32. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/__init__.py +0 -0
  33. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/advanced_language_query_tool.py +0 -0
  34. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/code_finder.py +0 -0
  35. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/graph_builder.py +0 -0
  36. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/handlers/analysis_handlers.py +0 -0
  37. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/handlers/indexing_handlers.py +0 -0
  38. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/handlers/query_handlers.py +0 -0
  39. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/handlers/watcher_handlers.py +0 -0
  40. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/c.py +0 -0
  41. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/cpp.py +0 -0
  42. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/csharp.py +0 -0
  43. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/dart.py +0 -0
  44. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/elixir.py +0 -0
  45. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/go.py +0 -0
  46. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/haskell.py +0 -0
  47. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/java.py +0 -0
  48. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/javascript.py +0 -0
  49. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/kotlin.py +0 -0
  50. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/perl.py +0 -0
  51. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/php.py +0 -0
  52. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/python.py +0 -0
  53. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/ruby.py +0 -0
  54. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/rust.py +0 -0
  55. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/scala.py +0 -0
  56. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/swift.py +0 -0
  57. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/typescript.py +0 -0
  58. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/languages/typescriptjsx.py +0 -0
  59. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/package_resolver.py +0 -0
  60. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/c_toolkit.py +0 -0
  61. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/cpp_toolkit.py +0 -0
  62. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/csharp_toolkit.py +0 -0
  63. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/dart_toolkit.py +0 -0
  64. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/go_toolkit.py +0 -0
  65. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/haskell_toolkit.py +0 -0
  66. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/java_toolkit.py +0 -0
  67. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/javascript_toolkit.py +0 -0
  68. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/perl_toolkit.py +0 -0
  69. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/python_toolkit.py +0 -0
  70. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/ruby_toolkit.py +0 -0
  71. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/rust_toolkit.py +0 -0
  72. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/scala_toolkit.py +0 -0
  73. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/swift_toolkit.py +0 -0
  74. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/query_tool_languages/typescript_toolkit.py +0 -0
  75. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/scip_indexer.py +0 -0
  76. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/scip_pb2.py +0 -0
  77. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/tools/system.py +0 -0
  78. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/utils/debug_log.py +0 -0
  79. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/utils/tree_sitter_manager.py +0 -0
  80. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext/utils/visualize_graph.py +0 -0
  81. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext.egg-info/SOURCES.txt +0 -0
  82. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
  83. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
  84. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext.egg-info/requires.txt +0 -0
  85. {codegraphcontext-0.2.11 → codegraphcontext-0.2.12}/src/codegraphcontext.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: An MCP server that indexes local code into a graph database to provide context to AI assistants.
5
5
  Author-email: Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
6
6
  License: MIT License
@@ -147,7 +147,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
147
147
  ---
148
148
 
149
149
  ## Project Details
150
- - **Version:** 0.2.11
150
+ - **Version:** 0.2.12
151
151
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
152
152
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
153
153
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -84,7 +84,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
84
84
  ---
85
85
 
86
86
  ## Project Details
87
- - **Version:** 0.2.11
87
+ - **Version:** 0.2.12
88
88
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
89
89
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
90
90
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codegraphcontext"
3
- version = "0.2.11"
3
+ version = "0.2.12"
4
4
  description = "An MCP server that indexes local code into a graph database to provide context to AI assistants."
5
5
  authors = [{ name = "Shashank Shekhar Singh", email = "shashankshekharsingh1205@gmail.com" }]
6
6
  readme = "README.md"
@@ -276,59 +276,50 @@ def get_repository_stats(code_finder: CodeFinder, **args) -> Dict[str, Any]:
276
276
  "error": f"Repository not found: {repo_path_obj}"
277
277
  }
278
278
 
279
- # Get stats for specific repo
280
- stats_query = """
281
- MATCH (r:Repository {path: $path})-[:CONTAINS]->(f:File)
282
- WITH r, count(f) as file_count, f
283
- OPTIONAL MATCH (f)-[:CONTAINS]->(func:Function)
284
- OPTIONAL MATCH (f)-[:CONTAINS]->(cls:Class)
285
- OPTIONAL MATCH (f)-[:IMPORTS]->(m:Module)
286
- RETURN
287
- file_count,
288
- count(DISTINCT func) as function_count,
289
- count(DISTINCT cls) as class_count,
290
- count(DISTINCT m) as module_count
291
- """
292
- result = session.run(stats_query, path=repo_path_obj)
293
- record = result.single()
279
+ # 1. Files
280
+ file_query = "MATCH (r:Repository {path: $path})-[:CONTAINS*]->(f:File) RETURN count(f) as c"
281
+ file_count = session.run(file_query, path=repo_path_obj).single()["c"]
282
+
283
+ # 2. Functions
284
+ func_query = "MATCH (r:Repository {path: $path})-[:CONTAINS*]->(func:Function) RETURN count(func) as c"
285
+ func_count = session.run(func_query, path=repo_path_obj).single()["c"]
286
+
287
+ # 3. Classes
288
+ class_query = "MATCH (r:Repository {path: $path})-[:CONTAINS*]->(cls:Class) RETURN count(cls) as c"
289
+ class_count = session.run(class_query, path=repo_path_obj).single()["c"]
290
+
291
+ # 4. Modules (imported)
292
+ module_query = "MATCH (r:Repository {path: $path})-[:CONTAINS*]->(f:File)-[:IMPORTS]->(m:Module) RETURN count(DISTINCT m) as c"
293
+ module_count = session.run(module_query, path=repo_path_obj).single()["c"]
294
294
 
295
295
  return {
296
296
  "success": True,
297
297
  "repository": repo_path_obj,
298
298
  "stats": {
299
- "files": record["file_count"] if record else 0,
300
- "functions": record["function_count"] if record else 0,
301
- "classes": record["class_count"] if record else 0,
302
- "modules": record["module_count"] if record else 0
299
+ "files": file_count,
300
+ "functions": func_count,
301
+ "classes": class_count,
302
+ "modules": module_count
303
303
  }
304
304
  }
305
305
  else:
306
306
  # Overall database stats
307
- stats_query = """
308
- MATCH (r:Repository)
309
- OPTIONAL MATCH (f:File)
310
- OPTIONAL MATCH (func:Function)
311
- OPTIONAL MATCH (cls:Class)
312
- OPTIONAL MATCH (m:Module)
313
- RETURN
314
- count(DISTINCT r) as repo_count,
315
- count(DISTINCT f) as file_count,
316
- count(DISTINCT func) as function_count,
317
- count(DISTINCT cls) as class_count,
318
- count(DISTINCT m) as module_count
319
- """
320
- result = session.run(stats_query)
321
- record = result.single()
307
+ repo_count = session.run("MATCH (r:Repository) RETURN count(r) as c").single()["c"]
322
308
 
323
- if record and record["repo_count"] > 0:
309
+ if repo_count > 0:
310
+ file_count = session.run("MATCH (f:File) RETURN count(f) as c").single()["c"]
311
+ func_count = session.run("MATCH (func:Function) RETURN count(func) as c").single()["c"]
312
+ class_count = session.run("MATCH (cls:Class) RETURN count(cls) as c").single()["c"]
313
+ module_count = session.run("MATCH (m:Module) RETURN count(m) as c").single()["c"]
314
+
324
315
  return {
325
316
  "success": True,
326
317
  "stats": {
327
- "repositories": record["repo_count"],
328
- "files": record["file_count"],
329
- "functions": record["function_count"],
330
- "classes": record["class_count"],
331
- "modules": record["module_count"]
318
+ "repositories": repo_count,
319
+ "files": file_count,
320
+ "functions": func_count,
321
+ "classes": class_count,
322
+ "modules": module_count
332
323
  }
333
324
  }
334
325
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.2.11
3
+ Version: 0.2.12
4
4
  Summary: An MCP server that indexes local code into a graph database to provide context to AI assistants.
5
5
  Author-email: Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
6
6
  License: MIT License
@@ -147,7 +147,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
147
147
  ---
148
148
 
149
149
  ## Project Details
150
- - **Version:** 0.2.11
150
+ - **Version:** 0.2.12
151
151
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
152
152
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
153
153
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)