codegraphcontext 0.4.16__tar.gz → 0.4.18__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.
- {codegraphcontext-0.4.16/src/codegraphcontext.egg-info → codegraphcontext-0.4.18}/PKG-INFO +85 -5
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/README.md +84 -4
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/pyproject.toml +1 -1
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/api/app.py +5 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/api/router.py +78 -23
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/cli_helpers.py +117 -50
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/config_manager.py +86 -26
- codegraphcontext-0.4.18/src/codegraphcontext/cli/hook_manager.py +220 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/main.py +273 -141
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/registry_commands.py +34 -11
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/setup_wizard.py +96 -10
- codegraphcontext-0.4.18/src/codegraphcontext/cli/visualizer.py +165 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/__init__.py +33 -19
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/bundle_registry.py +18 -4
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/cgc_bundle.py +254 -185
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/cgcignore.py +3 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/database_falkordb.py +45 -21
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/database_kuzu.py +47 -22
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/database_ladybug.py +25 -14
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/falkor_worker.py +39 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/jobs.py +1 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/watcher.py +92 -8
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/server.py +57 -21
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/code_finder.py +17 -14
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/graph_builder.py +47 -184
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/handlers/analysis_handlers.py +4 -2
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/handlers/indexing_handlers.py +13 -36
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/handlers/management_handlers.py +74 -18
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/handlers/query_handlers.py +24 -37
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/handlers/watcher_handlers.py +45 -29
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/constants.py +4 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/discovery.py +1 -2
- codegraphcontext-0.4.18/src/codegraphcontext/tools/indexing/persistence/utils.py +46 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/persistence/writer.py +335 -225
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/pipeline.py +47 -13
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/resolution/calls.py +34 -10
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/resolution/post_resolution.py +18 -6
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/scip_pipeline.py +38 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/c.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/dart.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/elisp.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/elixir.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/go.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/javascript.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/lua.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/perl.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/python.py +87 -46
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/ruby.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/swift.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/typescript.py +13 -3
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/report_generator.py +80 -15
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/scip_indexer.py +6 -1
- codegraphcontext-0.4.18/src/codegraphcontext/utils/cypher_readonly.py +65 -0
- codegraphcontext-0.4.18/src/codegraphcontext/utils/path_sandbox.py +91 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/server.py +57 -37
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18/src/codegraphcontext.egg-info}/PKG-INFO +85 -5
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext.egg-info/SOURCES.txt +4 -0
- codegraphcontext-0.4.16/src/codegraphcontext/cli/visualizer.py +0 -51
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/LICENSE +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/MANIFEST.in +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/setup.cfg +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/__main__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/api/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/api/mcp_sse.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/api/schemas.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/cli/setup_macos.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/database.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/database_falkordb_remote.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/core/database_nornic.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/prompts.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tool_definitions.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/advanced_language_query_tool.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/datasources/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/datasources/cassandra_ingester.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/datasources/mysql_ingester.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/datasources/redis_ingester.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/embeddings.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/persistence/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/pre_scan.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/resolution/__init__.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/resolution/inheritance.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/sanitize.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/schema.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/schema_contract.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/indexing/vector_resolver.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/cpp.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/csharp.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/css.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/gradle.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/haskell.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/html.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/java.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/kotlin.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/maven.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/mybatis.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/php.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/rust.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/scala.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/languages/typescriptjsx.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/package_resolver.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/c_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/cpp_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/csharp_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/dart_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/elisp_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/go_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/haskell_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/java_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/javascript_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/perl_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/python_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/ruby_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/rust_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/scala_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/swift_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/query_tool_languages/typescript_toolkit.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/scip_pb2.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/system.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/tree_sitter_parser.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/tools/type_utils.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/debug_log.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/git_utils.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/path_ignore.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/repo_path.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/tool_limits.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/tree_sitter_manager.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/utils/visualize_graph.py +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/__vite-browser-external-9wXp6ZBx.js +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/function-calls-BtRHrqa2.png +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/graph-total-D1fBAugo.png +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/hero-graph-2voMJp2a.jpg +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/hierarchy-DGADo0YT.png +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/index-C-187lf0.js +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/index-fNAa6jgv.css +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/parser-pyodide.worker-BgsDfaad.js +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/parser.worker-_nvrecvj.js +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/assets/tree-sitter-qKYAACSa.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/cgcIcon.png +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/favicon.ico +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/index.html +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/logo-icon.svg +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/logo.svg +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/placeholder.svg +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/preview-image.png +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/robots.txt +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-c.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-c_sharp.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-core.js +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-cpp.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-dart.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-go.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-java.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-javascript.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-kotlin.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-perl.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-php.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-python.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-ruby.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-rust.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-swift.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-tsx.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter-typescript.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/tree-sitter.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/web-tree-sitter.js +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext/viz/dist/wasm/web-tree-sitter.wasm +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext.egg-info/dependency_links.txt +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext.egg-info/entry_points.txt +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext.egg-info/requires.txt +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/src/codegraphcontext.egg-info/top_level.txt +0 -0
- {codegraphcontext-0.4.16 → codegraphcontext-0.4.18}/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.
|
|
3
|
+
Version: 0.4.18
|
|
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
|
|
@@ -96,7 +96,7 @@ Dynamic: license-file
|
|
|
96
96
|
- 🇯🇵 [日本語](docs/translations/README.ja.md)
|
|
97
97
|
- 🇪🇸 Español (Soon)
|
|
98
98
|
|
|
99
|
-
🌍 **Help translate CodeGraphContext to your language by raising an issue & PR on https://github.com/Shashankss1205/CodeGraphContext/issues!**
|
|
99
|
+
🌍 **Help translate CodeGraphContext to your language by raising an issue & PR on [GitHub Issues](https://github.com/Shashankss1205/CodeGraphContext/issues)!**
|
|
100
100
|
|
|
101
101
|
<p align="center">
|
|
102
102
|
<br>
|
|
@@ -156,6 +156,8 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
156
156
|
|
|
157
157
|
## 📍 Quick Navigation
|
|
158
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.
|
|
188
|
+
- **Version:** 0.4.18
|
|
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/)
|
|
@@ -212,7 +214,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
212
214
|
- **Code Indexing:** Analyzes code and builds a knowledge graph of its components.
|
|
213
215
|
- **Relationship Analysis:** Query for callers, callees, class hierarchies, call chains and more.
|
|
214
216
|
- **Pre-indexed Bundles:** Load famous repositories instantly with `.cgc` bundles - no indexing required! ([Learn more](docs/BUNDLES.md))
|
|
215
|
-
- **Live File Watching:** Watch directories for changes and automatically update the graph in real-time (`
|
|
217
|
+
- **Live File Watching:** Watch directories for changes and automatically update the graph in real-time (`cgc watch`).
|
|
216
218
|
- **Interactive Setup:** A user-friendly command-line wizard for easy setup.
|
|
217
219
|
- **Dual Mode:** Works as a standalone **CLI toolkit** for developers and as an **MCP server** for AI agents.
|
|
218
220
|
- **Multi-Language Support:** Full support for 22 programming languages.
|
|
@@ -246,7 +248,7 @@ CodeGraphContext supports multiple graph database backends to suit your environm
|
|
|
246
248
|
|
|
247
249
|
| Feature | KuzuDB | LadybugDB | FalkorDB Lite | Neo4j / Nornic DB |
|
|
248
250
|
| :--- | :--- | :--- | :--- | :--- |
|
|
249
|
-
| **Typical default** |
|
|
251
|
+
| **Typical default** | Cross-platform fallback when FalkorDB Lite is unavailable | Optional embedded backend | **Default on Unix** (Python 3.12+, when `falkordblite` is installed) | When explicitly configured via `cgc config db` |
|
|
250
252
|
| **Setup** | Zero-config / Embedded | Zero-config / Embedded | Zero-config / In-process | Docker / External |
|
|
251
253
|
| **Platform** | **All (Windows Native, macOS, Linux)** | **All (Windows Native, macOS, Linux)** | Unix-only (Linux/macOS/WSL) | All Platforms |
|
|
252
254
|
| **Use Case** | Desktop, IDE, Local development | Custom research projects | Specialized Unix development | Enterprise, Massive graphs |
|
|
@@ -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:**
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- 🇯🇵 [日本語](docs/translations/README.ja.md)
|
|
12
12
|
- 🇪🇸 Español (Soon)
|
|
13
13
|
|
|
14
|
-
🌍 **Help translate CodeGraphContext to your language by raising an issue & PR on https://github.com/Shashankss1205/CodeGraphContext/issues!**
|
|
14
|
+
🌍 **Help translate CodeGraphContext to your language by raising an issue & PR on [GitHub Issues](https://github.com/Shashankss1205/CodeGraphContext/issues)!**
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
17
|
<br>
|
|
@@ -71,6 +71,8 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
71
71
|
|
|
72
72
|
## 📍 Quick Navigation
|
|
73
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.
|
|
103
|
+
- **Version:** 0.4.18
|
|
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/)
|
|
@@ -127,7 +129,7 @@ A powerful **MCP server** and **CLI toolkit** that indexes local code into a gra
|
|
|
127
129
|
- **Code Indexing:** Analyzes code and builds a knowledge graph of its components.
|
|
128
130
|
- **Relationship Analysis:** Query for callers, callees, class hierarchies, call chains and more.
|
|
129
131
|
- **Pre-indexed Bundles:** Load famous repositories instantly with `.cgc` bundles - no indexing required! ([Learn more](docs/BUNDLES.md))
|
|
130
|
-
- **Live File Watching:** Watch directories for changes and automatically update the graph in real-time (`
|
|
132
|
+
- **Live File Watching:** Watch directories for changes and automatically update the graph in real-time (`cgc watch`).
|
|
131
133
|
- **Interactive Setup:** A user-friendly command-line wizard for easy setup.
|
|
132
134
|
- **Dual Mode:** Works as a standalone **CLI toolkit** for developers and as an **MCP server** for AI agents.
|
|
133
135
|
- **Multi-Language Support:** Full support for 22 programming languages.
|
|
@@ -161,7 +163,7 @@ CodeGraphContext supports multiple graph database backends to suit your environm
|
|
|
161
163
|
|
|
162
164
|
| Feature | KuzuDB | LadybugDB | FalkorDB Lite | Neo4j / Nornic DB |
|
|
163
165
|
| :--- | :--- | :--- | :--- | :--- |
|
|
164
|
-
| **Typical default** |
|
|
166
|
+
| **Typical default** | Cross-platform fallback when FalkorDB Lite is unavailable | Optional embedded backend | **Default on Unix** (Python 3.12+, when `falkordblite` is installed) | When explicitly configured via `cgc config db` |
|
|
165
167
|
| **Setup** | Zero-config / Embedded | Zero-config / Embedded | Zero-config / In-process | Docker / External |
|
|
166
168
|
| **Platform** | **All (Windows Native, macOS, Linux)** | **All (Windows Native, macOS, Linux)** | Unix-only (Linux/macOS/WSL) | All Platforms |
|
|
167
169
|
| **Use Case** | Desktop, IDE, Local development | Custom research projects | Specialized Unix development | Enterprise, Massive graphs |
|
|
@@ -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.
|
|
3
|
+
version = "0.4.18"
|
|
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"
|
|
@@ -24,6 +24,11 @@ def create_app() -> FastAPI:
|
|
|
24
24
|
|
|
25
25
|
app.include_router(router, prefix="/api/v1")
|
|
26
26
|
|
|
27
|
+
@app.get("/health")
|
|
28
|
+
async def health():
|
|
29
|
+
"""Liveness probe for load balancers and k8s."""
|
|
30
|
+
return {"status": "ok"}
|
|
31
|
+
|
|
27
32
|
# MCP-over-SSE Endpoints
|
|
28
33
|
app.add_api_route("/api/v1/mcp/sse", handle_sse, methods=["GET"])
|
|
29
34
|
app.add_api_route("/api/v1/mcp/messages", handle_messages, methods=["POST"])
|
|
@@ -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
|
-
|
|
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(
|
|
62
|
+
result = await server.handle_tool_call(
|
|
63
|
+
request.name,
|
|
64
|
+
request.arguments
|
|
65
|
+
)
|
|
66
|
+
|
|
51
67
|
if "error" in result:
|
|
52
|
-
return ApiResponse(
|
|
53
|
-
|
|
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(
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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(
|
|
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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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(
|
|
101
|
-
|
|
102
|
-
|
|
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
|
+
)
|