codegraphcontext 0.4.15__tar.gz → 0.4.17__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 (173) hide show
  1. {codegraphcontext-0.4.15/src/codegraphcontext.egg-info → codegraphcontext-0.4.17}/PKG-INFO +83 -3
  2. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/README.md +82 -2
  3. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/pyproject.toml +1 -1
  4. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/api/router.py +78 -23
  5. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/cli_helpers.py +111 -71
  6. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/config_manager.py +68 -23
  7. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/main.py +138 -65
  8. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/registry_commands.py +34 -11
  9. codegraphcontext-0.4.17/src/codegraphcontext/cli/visualizer.py +165 -0
  10. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/__init__.py +33 -19
  11. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/bundle_registry.py +18 -4
  12. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/cgc_bundle.py +297 -201
  13. codegraphcontext-0.4.17/src/codegraphcontext/core/cgcignore.py +242 -0
  14. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/database_falkordb.py +45 -21
  15. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/database_kuzu.py +38 -23
  16. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/database_ladybug.py +25 -14
  17. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/falkor_worker.py +39 -3
  18. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/jobs.py +1 -0
  19. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/watcher.py +45 -4
  20. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/server.py +57 -21
  21. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/code_finder.py +16 -13
  22. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/graph_builder.py +11 -8
  23. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/handlers/analysis_handlers.py +4 -2
  24. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/handlers/indexing_handlers.py +16 -38
  25. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/handlers/management_handlers.py +68 -16
  26. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/handlers/query_handlers.py +24 -37
  27. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/handlers/watcher_handlers.py +38 -27
  28. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/constants.py +4 -0
  29. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/persistence/writer.py +150 -136
  30. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/pipeline.py +20 -0
  31. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/resolution/calls.py +14 -1
  32. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/c.py +13 -3
  33. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/dart.py +13 -3
  34. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/elisp.py +13 -3
  35. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/elixir.py +13 -3
  36. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/go.py +13 -3
  37. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/javascript.py +13 -3
  38. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/lua.py +13 -3
  39. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/perl.py +13 -3
  40. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/python.py +77 -35
  41. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/ruby.py +13 -3
  42. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/swift.py +13 -3
  43. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/typescript.py +13 -3
  44. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/report_generator.py +80 -15
  45. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/scip_indexer.py +6 -1
  46. codegraphcontext-0.4.17/src/codegraphcontext/utils/cypher_readonly.py +65 -0
  47. codegraphcontext-0.4.17/src/codegraphcontext/utils/path_sandbox.py +90 -0
  48. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/server.py +57 -37
  49. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17/src/codegraphcontext.egg-info}/PKG-INFO +83 -3
  50. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext.egg-info/SOURCES.txt +2 -0
  51. codegraphcontext-0.4.15/src/codegraphcontext/cli/visualizer.py +0 -51
  52. codegraphcontext-0.4.15/src/codegraphcontext/core/cgcignore.py +0 -119
  53. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/LICENSE +0 -0
  54. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/MANIFEST.in +0 -0
  55. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/setup.cfg +0 -0
  56. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/__init__.py +0 -0
  57. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/__main__.py +0 -0
  58. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/api/__init__.py +0 -0
  59. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/api/app.py +0 -0
  60. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/api/mcp_sse.py +0 -0
  61. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/api/schemas.py +0 -0
  62. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/__init__.py +0 -0
  63. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/setup_macos.py +0 -0
  64. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/cli/setup_wizard.py +0 -0
  65. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/database.py +0 -0
  66. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/database_falkordb_remote.py +0 -0
  67. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/core/database_nornic.py +0 -0
  68. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/prompts.py +0 -0
  69. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tool_definitions.py +0 -0
  70. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/__init__.py +0 -0
  71. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/advanced_language_query_tool.py +0 -0
  72. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/datasources/__init__.py +0 -0
  73. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/datasources/cassandra_ingester.py +0 -0
  74. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/datasources/mysql_ingester.py +0 -0
  75. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/datasources/redis_ingester.py +0 -0
  76. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/__init__.py +0 -0
  77. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/discovery.py +0 -0
  78. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/embeddings.py +0 -0
  79. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/persistence/__init__.py +0 -0
  80. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/pre_scan.py +0 -0
  81. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/resolution/__init__.py +0 -0
  82. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/resolution/inheritance.py +0 -0
  83. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/resolution/post_resolution.py +0 -0
  84. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/sanitize.py +0 -0
  85. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/schema.py +0 -0
  86. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/schema_contract.py +0 -0
  87. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/scip_pipeline.py +0 -0
  88. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/indexing/vector_resolver.py +0 -0
  89. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/cpp.py +0 -0
  90. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/csharp.py +0 -0
  91. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/css.py +0 -0
  92. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/gradle.py +0 -0
  93. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/haskell.py +0 -0
  94. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/html.py +0 -0
  95. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/java.py +0 -0
  96. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/kotlin.py +0 -0
  97. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/maven.py +0 -0
  98. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/mybatis.py +0 -0
  99. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/php.py +0 -0
  100. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/rust.py +0 -0
  101. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/scala.py +0 -0
  102. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/languages/typescriptjsx.py +0 -0
  103. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/package_resolver.py +0 -0
  104. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/c_toolkit.py +0 -0
  105. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/cpp_toolkit.py +0 -0
  106. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/csharp_toolkit.py +0 -0
  107. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/dart_toolkit.py +0 -0
  108. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/elisp_toolkit.py +0 -0
  109. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/go_toolkit.py +0 -0
  110. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/haskell_toolkit.py +0 -0
  111. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/java_toolkit.py +0 -0
  112. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/javascript_toolkit.py +0 -0
  113. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/perl_toolkit.py +0 -0
  114. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/python_toolkit.py +0 -0
  115. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/ruby_toolkit.py +0 -0
  116. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/rust_toolkit.py +0 -0
  117. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/scala_toolkit.py +0 -0
  118. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/swift_toolkit.py +0 -0
  119. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/query_tool_languages/typescript_toolkit.py +0 -0
  120. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/scip_pb2.py +0 -0
  121. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/system.py +0 -0
  122. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/tree_sitter_parser.py +0 -0
  123. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/tools/type_utils.py +0 -0
  124. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/debug_log.py +0 -0
  125. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/git_utils.py +0 -0
  126. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/path_ignore.py +0 -0
  127. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/repo_path.py +0 -0
  128. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/tool_limits.py +0 -0
  129. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/tree_sitter_manager.py +0 -0
  130. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/utils/visualize_graph.py +0 -0
  131. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/__vite-browser-external-9wXp6ZBx.js +0 -0
  132. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/function-calls-BtRHrqa2.png +0 -0
  133. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/graph-total-D1fBAugo.png +0 -0
  134. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/hero-graph-2voMJp2a.jpg +0 -0
  135. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/hierarchy-DGADo0YT.png +0 -0
  136. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/index-C-187lf0.js +0 -0
  137. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/index-fNAa6jgv.css +0 -0
  138. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/parser-pyodide.worker-BgsDfaad.js +0 -0
  139. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/parser.worker-_nvrecvj.js +0 -0
  140. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/assets/tree-sitter-qKYAACSa.wasm +0 -0
  141. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/cgcIcon.png +0 -0
  142. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/favicon.ico +0 -0
  143. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/index.html +0 -0
  144. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/logo-icon.svg +0 -0
  145. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/logo.svg +0 -0
  146. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/placeholder.svg +0 -0
  147. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/preview-image.png +0 -0
  148. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/robots.txt +0 -0
  149. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-c.wasm +0 -0
  150. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-c_sharp.wasm +0 -0
  151. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-core.js +0 -0
  152. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-cpp.wasm +0 -0
  153. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-dart.wasm +0 -0
  154. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-go.wasm +0 -0
  155. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-java.wasm +0 -0
  156. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-javascript.wasm +0 -0
  157. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-kotlin.wasm +0 -0
  158. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-perl.wasm +0 -0
  159. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-php.wasm +0 -0
  160. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-python.wasm +0 -0
  161. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-ruby.wasm +0 -0
  162. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-rust.wasm +0 -0
  163. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-swift.wasm +0 -0
  164. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-tsx.wasm +0 -0
  165. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter-typescript.wasm +0 -0
  166. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/tree-sitter.wasm +0 -0
  167. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/web-tree-sitter.js +0 -0
  168. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext/viz/dist/wasm/web-tree-sitter.wasm +0 -0
  169. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
  170. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
  171. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext.egg-info/requires.txt +0 -0
  172. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/src/codegraphcontext.egg-info/top_level.txt +0 -0
  173. {codegraphcontext-0.4.15 → codegraphcontext-0.4.17}/tests/test_issue_806_fix.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codegraphcontext
3
- Version: 0.4.15
3
+ Version: 0.4.17
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
@@ -155,7 +155,9 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
155
155
  ---
156
156
 
157
157
  ## 📍 Quick Navigation
158
- * [🚀 Quick Start](#quick-start)
158
+ * [🚀 Quick Start](#-installation--quick-start)
159
+ * [📋 Prerequisites](#-prerequisites)
160
+ * [🏃 How to Run the Project Locally](#-how-to-run-the-project-locally)
159
161
  * [🌐 Supported Programming Languages](#supported-programming-languages)
160
162
  * [🛠️ CLI Toolkit](#for-cli-toolkit-mode)
161
163
  * [🤖 MCP Server](#-for-mcp-server-mode)
@@ -183,7 +185,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
183
185
  ---
184
186
 
185
187
  ## Project Details
186
- - **Version:** 0.4.15
188
+ - **Version:** 0.4.17
187
189
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
188
190
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
189
191
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -326,6 +328,84 @@ _If you’re using CodeGraphContext in your project, feel free to open a PR and
326
328
 
327
329
  ---
328
330
 
331
+ ## 📋 Prerequisites
332
+
333
+ Before installing CodeGraphContext, ensure you have:
334
+
335
+ * Python 3.10 or later
336
+ * pip package manager
337
+ * Git (optional, for cloning repositories)
338
+
339
+ Verify your Python installation:
340
+
341
+ ```bash
342
+ python --version
343
+ ```
344
+
345
+ ---
346
+
347
+ ## 🚀 Step-by-Step Setup Guide
348
+
349
+ ### Step 1: Install CodeGraphContext
350
+
351
+ ```bash
352
+ pip install codegraphcontext
353
+ ```
354
+
355
+ This command installs CodeGraphContext and all required dependencies.
356
+
357
+ ### Step 2: Verify Installation
358
+
359
+ ```bash
360
+ codegraphcontext --help
361
+ ```
362
+
363
+ If the command displays the available CLI commands, the installation was successful.
364
+
365
+ ### Step 3: Database Setup
366
+
367
+ CodeGraphContext automatically uses an embedded database by default, so no additional configuration is required for most users.
368
+
369
+ ---
370
+
371
+ ## 🏃 How to Run the Project Locally
372
+
373
+ ### Index a Repository
374
+
375
+ ```bash
376
+ codegraphcontext index .
377
+ ```
378
+
379
+ This scans the current project and creates a searchable code graph.
380
+
381
+ ### View Indexed Repositories
382
+
383
+ ```bash
384
+ codegraphcontext list
385
+ ```
386
+
387
+ Displays all repositories currently indexed by CodeGraphContext.
388
+
389
+ ### Analyze Code
390
+
391
+ ```bash
392
+ codegraphcontext analyze dead-code
393
+ ```
394
+
395
+ Finds potentially unused code in the indexed repository.
396
+
397
+ ---
398
+
399
+ ## ✅ Verify Everything Works
400
+
401
+ After indexing a repository, run:
402
+
403
+ ```bash
404
+ codegraphcontext list
405
+ ```
406
+
407
+ If the command executes successfully and displays indexed repositories, your setup is complete and CodeGraphContext is ready to use.
408
+
329
409
  ### For CLI Toolkit Mode
330
410
 
331
411
  **Start using immediately with CLI commands:**
@@ -70,7 +70,9 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
70
70
  ---
71
71
 
72
72
  ## 📍 Quick Navigation
73
- * [🚀 Quick Start](#quick-start)
73
+ * [🚀 Quick Start](#-installation--quick-start)
74
+ * [📋 Prerequisites](#-prerequisites)
75
+ * [🏃 How to Run the Project Locally](#-how-to-run-the-project-locally)
74
76
  * [🌐 Supported Programming Languages](#supported-programming-languages)
75
77
  * [🛠️ CLI Toolkit](#for-cli-toolkit-mode)
76
78
  * [🤖 MCP Server](#-for-mcp-server-mode)
@@ -98,7 +100,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
98
100
  ---
99
101
 
100
102
  ## Project Details
101
- - **Version:** 0.4.15
103
+ - **Version:** 0.4.17
102
104
  - **Authors:** Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
103
105
  - **License:** MIT License (See [LICENSE](LICENSE) for details)
104
106
  - **Website:** [CodeGraphContext](http://codegraphcontext.vercel.app/)
@@ -241,6 +243,84 @@ _If you’re using CodeGraphContext in your project, feel free to open a PR and
241
243
 
242
244
  ---
243
245
 
246
+ ## 📋 Prerequisites
247
+
248
+ Before installing CodeGraphContext, ensure you have:
249
+
250
+ * Python 3.10 or later
251
+ * pip package manager
252
+ * Git (optional, for cloning repositories)
253
+
254
+ Verify your Python installation:
255
+
256
+ ```bash
257
+ python --version
258
+ ```
259
+
260
+ ---
261
+
262
+ ## 🚀 Step-by-Step Setup Guide
263
+
264
+ ### Step 1: Install CodeGraphContext
265
+
266
+ ```bash
267
+ pip install codegraphcontext
268
+ ```
269
+
270
+ This command installs CodeGraphContext and all required dependencies.
271
+
272
+ ### Step 2: Verify Installation
273
+
274
+ ```bash
275
+ codegraphcontext --help
276
+ ```
277
+
278
+ If the command displays the available CLI commands, the installation was successful.
279
+
280
+ ### Step 3: Database Setup
281
+
282
+ CodeGraphContext automatically uses an embedded database by default, so no additional configuration is required for most users.
283
+
284
+ ---
285
+
286
+ ## 🏃 How to Run the Project Locally
287
+
288
+ ### Index a Repository
289
+
290
+ ```bash
291
+ codegraphcontext index .
292
+ ```
293
+
294
+ This scans the current project and creates a searchable code graph.
295
+
296
+ ### View Indexed Repositories
297
+
298
+ ```bash
299
+ codegraphcontext list
300
+ ```
301
+
302
+ Displays all repositories currently indexed by CodeGraphContext.
303
+
304
+ ### Analyze Code
305
+
306
+ ```bash
307
+ codegraphcontext analyze dead-code
308
+ ```
309
+
310
+ Finds potentially unused code in the indexed repository.
311
+
312
+ ---
313
+
314
+ ## ✅ Verify Everything Works
315
+
316
+ After indexing a repository, run:
317
+
318
+ ```bash
319
+ codegraphcontext list
320
+ ```
321
+
322
+ If the command executes successfully and displays indexed repositories, your setup is complete and CodeGraphContext is ready to use.
323
+
244
324
  ### For CLI Toolkit Mode
245
325
 
246
326
  **Start using immediately with CLI commands:**
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "codegraphcontext"
3
- version = "0.4.15"
3
+ version = "0.4.17"
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"
@@ -13,6 +13,8 @@ from .schemas import (
13
13
  )
14
14
  from codegraphcontext.server import MCPServer
15
15
 
16
+ import socket
17
+
16
18
  router = APIRouter()
17
19
 
18
20
  # Global server instance (initialized on startup)
@@ -25,9 +27,19 @@ def get_server() -> MCPServer:
25
27
  _server_instance = MCPServer(cwd=Path.cwd())
26
28
  return _server_instance
27
29
 
30
+ def raise_service_unavailable(exc: Exception):
31
+ raise HTTPException(
32
+ status_code=503,
33
+ detail="Database service unavailable",
34
+ ) from exc
35
+
28
36
  @router.get("/status", response_model=ApiResponse)
29
37
  async def get_status(server: MCPServer = Depends(get_server)):
30
- status = server.db_manager.is_connected()
38
+ try:
39
+ status = server.db_manager.is_connected()
40
+ except (OSError, socket.error) as exc:
41
+ raise_service_unavailable(exc)
42
+
31
43
  return ApiResponse(
32
44
  status="ok",
33
45
  message="Connected" if status else "Disconnected",
@@ -43,16 +55,35 @@ async def list_tools(server: MCPServer = Depends(get_server)):
43
55
 
44
56
  @router.post("/tools/call", response_model=ApiResponse)
45
57
  async def call_tool(
46
- request: ToolCallRequest,
58
+ request: ToolCallRequest,
47
59
  server: MCPServer = Depends(get_server)
48
60
  ):
49
61
  try:
50
- result = await server.handle_tool_call(request.name, request.arguments)
62
+ result = await server.handle_tool_call(
63
+ request.name,
64
+ request.arguments
65
+ )
66
+
51
67
  if "error" in result:
52
- return ApiResponse(status="error", error=result["error"])
53
- return ApiResponse(status="ok", data=result)
68
+ return ApiResponse(
69
+ status="error",
70
+ error=result["error"]
71
+ )
72
+
73
+ return ApiResponse(
74
+ status="ok",
75
+ data=result
76
+ )
77
+
78
+ except (OSError, socket.error) as exc:
79
+ raise_service_unavailable(exc)
80
+
54
81
  except Exception as e:
55
- return ApiResponse(status="error", error=str(e))
82
+ return ApiResponse(
83
+ status="error",
84
+ error=str(e)
85
+ )
86
+
56
87
 
57
88
  @router.post("/index", response_model=ApiResponse)
58
89
  async def index_repository(
@@ -60,21 +91,27 @@ async def index_repository(
60
91
  background_tasks: BackgroundTasks,
61
92
  server: MCPServer = Depends(get_server)
62
93
  ):
63
- # Map to add_code_to_graph tool
64
94
  args = {
65
95
  "path": request.path,
66
96
  "repo_name": request.repo_name,
67
97
  "branch": request.branch,
68
98
  "force": request.force
69
99
  }
70
-
71
- # We call handle_tool_call which is async
72
- # But add_code_to_graph starts a background job anyway
73
- result = await server.handle_tool_call("add_code_to_graph", args)
74
-
100
+
101
+ try:
102
+ result = await server.handle_tool_call(
103
+ "add_code_to_graph",
104
+ args
105
+ )
106
+ except (OSError, socket.error) as exc:
107
+ raise_service_unavailable(exc)
108
+
75
109
  if "error" in result:
76
- raise HTTPException(status_code=400, detail=result["error"])
77
-
110
+ raise HTTPException(
111
+ status_code=400,
112
+ detail=result["error"]
113
+ )
114
+
78
115
  return ApiResponse(
79
116
  status="ok",
80
117
  message="Indexing job started",
@@ -86,17 +123,35 @@ async def execute_query(
86
123
  request: QueryRequest,
87
124
  server: MCPServer = Depends(get_server)
88
125
  ):
89
- result = await server.handle_tool_call("execute_cypher_query", {
90
- "cypher_query": request.query,
91
- "params": request.params
92
- })
93
-
126
+ try:
127
+ result = await server.handle_tool_call(
128
+ "execute_cypher_query",
129
+ {
130
+ "cypher_query": request.query,
131
+ "params": request.params,
132
+ },
133
+ )
134
+ except (OSError, socket.error) as exc:
135
+ raise_service_unavailable(exc)
136
+
94
137
  if "error" in result:
95
138
  return ApiResponse(status="error", error=result["error"])
96
-
139
+
97
140
  return ApiResponse(status="ok", data=result)
98
141
 
99
142
  @router.get("/repositories", response_model=ApiResponse)
100
- async def list_repositories(server: MCPServer = Depends(get_server)):
101
- result = await server.handle_tool_call("list_indexed_repositories", {})
102
- return ApiResponse(status="ok", data=result)
143
+ async def list_repositories(
144
+ server: MCPServer = Depends(get_server)
145
+ ):
146
+ try:
147
+ result = await server.handle_tool_call(
148
+ "list_indexed_repositories",
149
+ {}
150
+ )
151
+ except (OSError, socket.error) as exc:
152
+ raise_service_unavailable(exc)
153
+
154
+ return ApiResponse(
155
+ status="ok",
156
+ data=result
157
+ )