code-graph-rag 0.5.0__tar.gz → 0.6.30__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.
- {code_graph_rag-0.5.0/code_graph_rag.egg-info → code_graph_rag-0.6.30}/PKG-INFO +13 -10
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/PYPI_README.md +4 -4
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/README.md +8 -4
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30/code_graph_rag.egg-info}/PKG-INFO +13 -10
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/SOURCES.txt +4 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/requires.txt +4 -6
- code_graph_rag-0.6.30/codebase_rag/__init__.py +8 -0
- code_graph_rag-0.6.30/codebase_rag/analyzers/ast_grep_rules/security/python.yaml +234 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/cli.py +105 -14
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/cli_help.py +20 -1
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_csharp.py +55 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_dart.py +4 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_js.py +3 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_nodes.py +3 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_python.py +51 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/build.py +0 -1
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/cli.py +82 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/core.py +5 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/deadcode_roots.py +21 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/embedded_graph.py +6 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/graph.py +105 -1
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/mcp.py +4 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/providers.py +9 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/trace.py +7 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/cypher_queries.py +8 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/dead_code.py +32 -0
- code_graph_rag-0.6.30/codebase_rag/dispatch_dependents.py +941 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/contract.py +4 -0
- code_graph_rag-0.6.30/codebase_rag/editing/move.py +3042 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/rename.py +176 -9
- code_graph_rag-0.6.30/codebase_rag/embedded_graph/extension.py +32 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/exceptions.py +36 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/graph_updater.py +419 -16
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/logs.py +4 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/tools.py +113 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/call_processor.py +34 -7
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/call_resolver.py +252 -28
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/type_inference.py +247 -22
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/utils.py +196 -19
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/frontend.py +5 -5
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/__init__.py +8 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/utils.py +76 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/definition_processor.py +10 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dependency_parser.py +4 -9
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/export_detection.py +15 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flow_access/processor.py +576 -67
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/function_ingest.py +2 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/utils.py +12 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/import_processor.py +484 -36
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/method_resolver.py +135 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/module_system.py +85 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/ast_analyzer.py +880 -64
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/expression_analyzer.py +1 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/type_inference.py +13 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/utils.py +52 -4
- code_graph_rag-0.6.30/codebase_rag/parsers/py/with_analyzer.py +854 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/type_facts.py +79 -4
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/type_inference.py +328 -52
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/utils.py +91 -3
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/providers/base.py +15 -1
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/readme_sections.py +5 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/structural_delta.py +78 -4
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/tool_descriptions.py +22 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/ebpf_pprof.py +4 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/pprof.py +25 -3
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/types_defs.py +12 -3
- code_graph_rag-0.6.30/codebase_rag/utils/json_io.py +86 -0
- code_graph_rag-0.6.30/codebase_rag/utils/safe_xml.py +50 -0
- code_graph_rag-0.6.30/codebase_rag/utils/toml_writer.py +23 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/watch.py +5 -2
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/storage.py +2 -3
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/pyproject.toml +24 -10
- code_graph_rag-0.5.0/codebase_rag/__init__.py +0 -3
- code_graph_rag-0.5.0/codebase_rag/analyzers/ast_grep_rules/security/python.yaml +0 -107
- code_graph_rag-0.5.0/codebase_rag/embedded_graph/extension.py +0 -22
- code_graph_rag-0.5.0/codebase_rag/parsers/py/with_analyzer.py +0 -288
- code_graph_rag-0.5.0/codebase_rag/utils/json_io.py +0 -31
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/LICENSE +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/cgr/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/dependency_links.txt +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/entry_points.txt +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/top_level.txt +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/_cli_env.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_analyzer.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/c.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/cpp.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/csharp.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/dart.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/go.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/java.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/javascript.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/lua.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/php.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/python.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/ruby.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/rust.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/scala.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/tsx.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/typescript.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/c.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/cpp.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/csharp.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/dart.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/go.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/java.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/javascript.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/lua.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/php.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/ruby.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/rust.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/scala.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/tsx.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/typescript.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/c.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/cpp.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/csharp.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/dart.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/go.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/java.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/javascript.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/lua.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/php.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/python.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/ruby.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/rust.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/scala.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/tsx.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/typescript.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/ast_cache.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/capture.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/check_isolation.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/checkout_state.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/cli_runtime.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/config.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/console_marks.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_cpp.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_go.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_java.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_julia.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_lua.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_php.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_rust.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_scala.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_sql.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/deps.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/duplicates.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/fqn_specs.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/health.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/interface.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/lang_tooling.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/languages.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/notebook.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/port.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/security.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/sqlite_vectors.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/stdlib_types.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/constants/structural.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/context_pruning.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/context_slice.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/crash_correlation.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/decorators.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/docker-compose.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/duplicates.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/cli.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/import_paths.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/imports.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/occurrences.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/patcher.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_bind.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_contract.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_js.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_js_bind.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_spec.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/sites.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editing/transaction.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/editor_links.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/compiler.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/connection.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/cypher_ast.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/executor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/expressions.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/functions.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/lexer.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/limits.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/native.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/parser.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/procedures.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/sql.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/store.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/types.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/embedder.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/flow_verdict.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/function_registry.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/gloss.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/gloss_anchor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/gloss_repair.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/graph_audit.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/graph_cli.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/graph_dialects.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/graph_loader.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/graph_query.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/instructions_trust.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/interface_skip.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/language_spec.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/main.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/client.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/server.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/mgclient_compat.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/mgclient_probe.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/models.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parser_fingerprint.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parser_loader.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/anchor_hash.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_fingerprint.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/bash.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/elixir.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/haskell.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/kotlin.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/nix.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/ruby.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/solidity.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/swift.yaml +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_scope.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_tier.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/build_lock.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/base_targets.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/cpp_modules.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/identity.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/method_override.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/mixin.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/node_type.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/parent_extraction.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/relationships.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/contract_linking.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/contracts.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/class_macro.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/function_values.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/local_types.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/overloads.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/preproc_recovery.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/trailing_annotation.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/constants.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/frontend.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/qn.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/arity.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.cs +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.csproj +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/roslyn/Program.cs +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/package_paths.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/definition_docstring.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dispatch_registry.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/document_tier.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/endpoint_prefixes.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/endpoint_routes.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/endpoints.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/enum_variants.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/factory.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/field_nodes.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flat_module.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flow_access/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flow_access/constants.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontend_mode.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/cpp.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/csharp.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/go.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/java.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/protocol.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/python.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/registry.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/builds.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/interface_ingest.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/interfaces.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/link_state.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/module_paths.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/frontend.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/gotypes/go.mod +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/gotypes/go.sum +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/gotypes/main.go +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/base.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/cpp.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/java.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/js_ts.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/julia.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/lua.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/php.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/protocol.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/python.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/registry.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/rust.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/interface_fingerprint.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/constants.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/descriptor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/extract.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/models.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/processor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/registry.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/resource_names.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/url_folding.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/type_resolver.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/variable_analyzer.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_frontend/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_frontend/frontend.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_frontend/javac/cgr/Frontend.java +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_generated.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_lombok.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/commonjs_exports.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/ingest.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/module_paths.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/overloads.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/reexports.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/julia/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/julia/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/lua/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/lua/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/lua/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/module_docstring.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/native_trees.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/notebook.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/parameter_nodes.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/class_names.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/namespaces.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/positional_params.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/class_aliases.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/definition_index.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/flow_bindings.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/forward_refs.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/overloads.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/patterns.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/receiver_rebinding.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/variable_analyzer.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py_frontend/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py_frontend/frontend.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/python_source_roots.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rpc_exposure.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/cargo_semver.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/type_inference.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/scala/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/scala/utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/semantic_call_join.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/sql_ddl.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/sql_recovery.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/stdlib_extractor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/string_call.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/structure_processor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/path_filters.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/port_cli.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/port_parity.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/project_selection.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/prompts.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/providers/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/providers/litellm.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/c_sharp.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/dart.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/java.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/javascript.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/julia.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/php.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/python.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/rust.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/typescript.scm +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/schema_builder.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/schema_parse.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/schemas.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/sensitive_paths.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/anthropic_token_counter.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/cypher_guard.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/filtering.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/gloss_cleanup.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/graph_diff.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/graph_service.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/llm.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/neo4j_driver.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/protobuf_service.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/provenance.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/resource_cleanup.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/services/usage_cost.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/source_checkout.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/sql_names.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/sqlite_vectors.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/stack/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/stack/cli.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/stack/constants.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/stack/health.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/stack/manager.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/structural_check.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/sync_guard.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/sync_lock.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/taint.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tool_errors.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/ast_grep_service.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/code_retrieval.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/codebase_query.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/directory_lister.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/duplicate_detection.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/file_editor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/file_reader.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/file_writer.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/graph_refresh.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/graph_rerank.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/health_checker.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/language.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/language_catalog.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/research.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/semantic_search.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/shell_command.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/structural_editor.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/structural_search.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tools/web_search.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/carry.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/cli.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/cpuprofile.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/dispatch_site.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/ingest.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/instrumented.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/pytest_plugin.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/records.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/resolution.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/rust_pprof.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/sourcemap.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/speedscope.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/tracer.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/trace/xdebug.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/tree_sitter_point.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/unixcoder.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/cpp_signatures.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/dependencies.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/endpoints.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/fqn_resolver.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/interruptible_thread.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/path_utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/process_owner.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/qn_markers.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/rich_markdown.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/source_encoding.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/source_extraction.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/terminal_console.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/utils/token_utils.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/vector_store.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/cli.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/constants.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/models.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codec/__init__.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codec/schema.proto +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codec/schema_pb2.py +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/codec/schema_pb2.pyi +0 -0
- {code_graph_rag-0.5.0 → code_graph_rag-0.6.30}/setup.cfg +0 -0
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.30
|
|
4
4
|
Summary: The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Keywords: rag,retrieval-augmented-generation,knowledge-graph,code-analysis,tree-sitter,mcp,mcp-server,llm,graph-database,semantic-search,codebase,memgraph,developer-tools,monorepo
|
|
7
7
|
Classifier: Development Status :: 4 - Beta
|
|
8
8
|
Classifier: Environment :: Console
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
|
-
Classifier: Operating System ::
|
|
10
|
+
Classifier: Operating System :: MacOS
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
13
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
14
|
Classifier: Topic :: Software Development :: Code Generators
|
|
13
15
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
@@ -25,7 +28,6 @@ Requires-Dist: pydantic-ai-slim[anthropic,google,openai]>=2.0.0
|
|
|
25
28
|
Requires-Dist: pydantic-settings>=2.12.0
|
|
26
29
|
Requires-Dist: python-dotenv>=1.2.1
|
|
27
30
|
Requires-Dist: tiktoken>=0.12.0
|
|
28
|
-
Requires-Dist: tomli-w>=1.2.0
|
|
29
31
|
Requires-Dist: tree-sitter-python>=0.25.0
|
|
30
32
|
Requires-Dist: tree-sitter==0.26.0
|
|
31
33
|
Requires-Dist: watchdog>=6.0.0
|
|
@@ -35,13 +37,13 @@ Requires-Dist: prompt-toolkit>=3.0.52
|
|
|
35
37
|
Requires-Dist: diff-match-patch>=20241021
|
|
36
38
|
Requires-Dist: click>=8.3.3
|
|
37
39
|
Requires-Dist: protobuf>=6.33.5
|
|
38
|
-
Requires-Dist:
|
|
39
|
-
Requires-Dist: huggingface-hub[hf-xet]>=1.7.2
|
|
40
|
+
Requires-Dist: pyyaml>=6.0
|
|
40
41
|
Requires-Dist: pathspec>=1.0.4
|
|
41
42
|
Requires-Dist: pygments>=2.20.0
|
|
43
|
+
Requires-Dist: httpx>=0.28.1
|
|
42
44
|
Requires-Dist: certifi>=2026.10.23
|
|
43
45
|
Requires-Dist: regex>=2024.11.6
|
|
44
|
-
Requires-Dist: cgr-graph-rs<0.2,>=0.1.
|
|
46
|
+
Requires-Dist: cgr-graph-rs<0.2,>=0.1.7
|
|
45
47
|
Provides-Extra: test
|
|
46
48
|
Requires-Dist: jedi>=0.19; extra == "test"
|
|
47
49
|
Requires-Dist: pytest>=8.4.1; extra == "test"
|
|
@@ -84,6 +86,7 @@ Requires-Dist: grpcio>=1.84.1; extra == "semantic"
|
|
|
84
86
|
Requires-Dist: sqlite-vec>=0.1.9; ((sys_platform == "linux" and (platform_machine == "x86_64" or platform_machine == "aarch64")) or sys_platform == "darwin" or (sys_platform == "win32" and platform_machine == "AMD64")) and extra == "semantic"
|
|
85
87
|
Requires-Dist: torch>=2.6.0; extra == "semantic"
|
|
86
88
|
Requires-Dist: transformers>=5.0.0; extra == "semantic"
|
|
89
|
+
Requires-Dist: huggingface-hub[hf-xet]>=1.7.2; extra == "semantic"
|
|
87
90
|
Provides-Extra: milvus
|
|
88
91
|
Requires-Dist: pymilvus[milvus-lite]>=3.0.0; extra == "milvus"
|
|
89
92
|
Requires-Dist: grpcio>=1.84.1; extra == "milvus"
|
|
@@ -189,10 +192,10 @@ The knowledge graph is an embedded SQLite file (`~/.cgr/graph.sqlite`), so there
|
|
|
189
192
|
is no database server to run. Memgraph and Neo4j remain available as opt-in
|
|
190
193
|
backends; see [Graph Backends](https://docs.code-graph-rag.com/architecture/embedded-graph/).
|
|
191
194
|
|
|
192
|
-
The wheel is pure Python (`py3-none-any`),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
The wheel is pure Python (`py3-none-any`), and it requires `cgr-graph-rs`, the
|
|
196
|
+
native extension that does the work behind it, which ships for CPython 3.12 or
|
|
197
|
+
newer on Linux (x86_64, aarch64), macOS and Windows x64. cgr does not run
|
|
198
|
+
without it, so it installs on those platforms only.
|
|
196
199
|
|
|
197
200
|
Some distributions ship an older interpreter (Debian Bookworm, and so Raspberry
|
|
198
201
|
Pi OS Bookworm, ships 3.11), which also explains the failed piwheels Bookworm
|
|
@@ -91,10 +91,10 @@ The knowledge graph is an embedded SQLite file (`~/.cgr/graph.sqlite`), so there
|
|
|
91
91
|
is no database server to run. Memgraph and Neo4j remain available as opt-in
|
|
92
92
|
backends; see [Graph Backends](https://docs.code-graph-rag.com/architecture/embedded-graph/).
|
|
93
93
|
|
|
94
|
-
The wheel is pure Python (`py3-none-any`),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
The wheel is pure Python (`py3-none-any`), and it requires `cgr-graph-rs`, the
|
|
95
|
+
native extension that does the work behind it, which ships for CPython 3.12 or
|
|
96
|
+
newer on Linux (x86_64, aarch64), macOS and Windows x64. cgr does not run
|
|
97
|
+
without it, so it installs on those platforms only.
|
|
98
98
|
|
|
99
99
|
Some distributions ship an older interpreter (Debian Bookworm, and so Raspberry
|
|
100
100
|
Pi OS Bookworm, ships 3.11), which also explains the failed piwheels Bookworm
|
|
@@ -61,9 +61,13 @@ Code-Graph-RAG parses a multi-language codebase with Tree-sitter, sharpened by c
|
|
|
61
61
|
## Latest News 🔥
|
|
62
62
|
|
|
63
63
|
<!-- SECTION:latest_news -->
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
64
|
+
- **Type Handling**: Improved handling of type context managers, walrus operators, and match binding targets in both Python and TypeScript.
|
|
65
|
+
- **Rename Refinement**: Prevented Go renames from unexporting names used by other packages.
|
|
66
|
+
- **Profile Naming**: Corrected the naming of pprof profiles to avoid "malformed" errors when no samples are present.
|
|
67
|
+
- **Output Budget**: Increased the Anthropic output budget to improve the default thinking experience.
|
|
68
|
+
- **Module Resolution**: Resolved issues with module resolution in various scenarios, including ES module default imports and bare name bindings.
|
|
69
|
+
- **Dead Code Elimination**: Removed dead code roots associated with IPython rich-display methods.
|
|
70
|
+
- **Incremental Refresh**: Improved incremental refresh to ensure callers are updated when dispatch targets change.
|
|
67
71
|
<!-- /SECTION:latest_news -->
|
|
68
72
|
|
|
69
73
|
See [NEWS.md](NEWS.md) for the full history.
|
|
@@ -144,7 +148,7 @@ To upgrade an existing install, run `uv tool upgrade code-graph-rag` (with pipx,
|
|
|
144
148
|
You also need Python 3.12+ and `ripgrep`. The graph lives in an embedded SQLite file by default, so there is no database server to run: no Docker and no `cmake`. Memgraph and Neo4j remain available as opt-in backends ([Graph Backends](docs/architecture/embedded-graph.md)). Full prerequisites, source installs, and environment setup are in the [Installation](docs/getting-started/installation.md) guide.
|
|
145
149
|
|
|
146
150
|
> [!NOTE]
|
|
147
|
-
>
|
|
151
|
+
> cgr requires its native extension, `cgr-graph-rs`, which ships for CPython 3.12 or newer on Linux (x86_64, aarch64), macOS and Windows x64, so it installs on those platforms only. Older system interpreters (Debian Bookworm ships 3.11) need the interpreter pinned explicitly; see [Installation](docs/getting-started/installation.md#older-system-interpreters) for the commands.
|
|
148
152
|
|
|
149
153
|
## Quick Start
|
|
150
154
|
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.30
|
|
4
4
|
Summary: The ultimate RAG for your monorepo. Query, understand, and edit multi-language codebases with the power of AI and knowledge graphs
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Keywords: rag,retrieval-augmented-generation,knowledge-graph,code-analysis,tree-sitter,mcp,mcp-server,llm,graph-database,semantic-search,codebase,memgraph,developer-tools,monorepo
|
|
7
7
|
Classifier: Development Status :: 4 - Beta
|
|
8
8
|
Classifier: Environment :: Console
|
|
9
9
|
Classifier: Intended Audience :: Developers
|
|
10
|
-
Classifier: Operating System ::
|
|
10
|
+
Classifier: Operating System :: MacOS
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
11
13
|
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
12
14
|
Classifier: Topic :: Software Development :: Code Generators
|
|
13
15
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
15
18
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
17
20
|
Classifier: Programming Language :: Python :: 3.14
|
|
@@ -25,7 +28,6 @@ Requires-Dist: pydantic-ai-slim[anthropic,google,openai]>=2.0.0
|
|
|
25
28
|
Requires-Dist: pydantic-settings>=2.12.0
|
|
26
29
|
Requires-Dist: python-dotenv>=1.2.1
|
|
27
30
|
Requires-Dist: tiktoken>=0.12.0
|
|
28
|
-
Requires-Dist: tomli-w>=1.2.0
|
|
29
31
|
Requires-Dist: tree-sitter-python>=0.25.0
|
|
30
32
|
Requires-Dist: tree-sitter==0.26.0
|
|
31
33
|
Requires-Dist: watchdog>=6.0.0
|
|
@@ -35,13 +37,13 @@ Requires-Dist: prompt-toolkit>=3.0.52
|
|
|
35
37
|
Requires-Dist: diff-match-patch>=20241021
|
|
36
38
|
Requires-Dist: click>=8.3.3
|
|
37
39
|
Requires-Dist: protobuf>=6.33.5
|
|
38
|
-
Requires-Dist:
|
|
39
|
-
Requires-Dist: huggingface-hub[hf-xet]>=1.7.2
|
|
40
|
+
Requires-Dist: pyyaml>=6.0
|
|
40
41
|
Requires-Dist: pathspec>=1.0.4
|
|
41
42
|
Requires-Dist: pygments>=2.20.0
|
|
43
|
+
Requires-Dist: httpx>=0.28.1
|
|
42
44
|
Requires-Dist: certifi>=2026.10.23
|
|
43
45
|
Requires-Dist: regex>=2024.11.6
|
|
44
|
-
Requires-Dist: cgr-graph-rs<0.2,>=0.1.
|
|
46
|
+
Requires-Dist: cgr-graph-rs<0.2,>=0.1.7
|
|
45
47
|
Provides-Extra: test
|
|
46
48
|
Requires-Dist: jedi>=0.19; extra == "test"
|
|
47
49
|
Requires-Dist: pytest>=8.4.1; extra == "test"
|
|
@@ -84,6 +86,7 @@ Requires-Dist: grpcio>=1.84.1; extra == "semantic"
|
|
|
84
86
|
Requires-Dist: sqlite-vec>=0.1.9; ((sys_platform == "linux" and (platform_machine == "x86_64" or platform_machine == "aarch64")) or sys_platform == "darwin" or (sys_platform == "win32" and platform_machine == "AMD64")) and extra == "semantic"
|
|
85
87
|
Requires-Dist: torch>=2.6.0; extra == "semantic"
|
|
86
88
|
Requires-Dist: transformers>=5.0.0; extra == "semantic"
|
|
89
|
+
Requires-Dist: huggingface-hub[hf-xet]>=1.7.2; extra == "semantic"
|
|
87
90
|
Provides-Extra: milvus
|
|
88
91
|
Requires-Dist: pymilvus[milvus-lite]>=3.0.0; extra == "milvus"
|
|
89
92
|
Requires-Dist: grpcio>=1.84.1; extra == "milvus"
|
|
@@ -189,10 +192,10 @@ The knowledge graph is an embedded SQLite file (`~/.cgr/graph.sqlite`), so there
|
|
|
189
192
|
is no database server to run. Memgraph and Neo4j remain available as opt-in
|
|
190
193
|
backends; see [Graph Backends](https://docs.code-graph-rag.com/architecture/embedded-graph/).
|
|
191
194
|
|
|
192
|
-
The wheel is pure Python (`py3-none-any`),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
195
|
+
The wheel is pure Python (`py3-none-any`), and it requires `cgr-graph-rs`, the
|
|
196
|
+
native extension that does the work behind it, which ships for CPython 3.12 or
|
|
197
|
+
newer on Linux (x86_64, aarch64), macOS and Windows x64. cgr does not run
|
|
198
|
+
without it, so it installs on those platforms only.
|
|
196
199
|
|
|
197
200
|
Some distributions ship an older interpreter (Debian Bookworm, and so Raspberry
|
|
198
201
|
Pi OS Bookworm, ships 3.11), which also explains the failed piwheels Bookworm
|
|
@@ -26,6 +26,7 @@ codebase_rag/crash_correlation.py
|
|
|
26
26
|
codebase_rag/cypher_queries.py
|
|
27
27
|
codebase_rag/dead_code.py
|
|
28
28
|
codebase_rag/decorators.py
|
|
29
|
+
codebase_rag/dispatch_dependents.py
|
|
29
30
|
codebase_rag/docker-compose.yaml
|
|
30
31
|
codebase_rag/duplicates.py
|
|
31
32
|
codebase_rag/editor_links.py
|
|
@@ -165,6 +166,7 @@ codebase_rag/editing/cli.py
|
|
|
165
166
|
codebase_rag/editing/contract.py
|
|
166
167
|
codebase_rag/editing/import_paths.py
|
|
167
168
|
codebase_rag/editing/imports.py
|
|
169
|
+
codebase_rag/editing/move.py
|
|
168
170
|
codebase_rag/editing/occurrences.py
|
|
169
171
|
codebase_rag/editing/patcher.py
|
|
170
172
|
codebase_rag/editing/rename.py
|
|
@@ -458,10 +460,12 @@ codebase_rag/utils/path_utils.py
|
|
|
458
460
|
codebase_rag/utils/process_owner.py
|
|
459
461
|
codebase_rag/utils/qn_markers.py
|
|
460
462
|
codebase_rag/utils/rich_markdown.py
|
|
463
|
+
codebase_rag/utils/safe_xml.py
|
|
461
464
|
codebase_rag/utils/source_encoding.py
|
|
462
465
|
codebase_rag/utils/source_extraction.py
|
|
463
466
|
codebase_rag/utils/terminal_console.py
|
|
464
467
|
codebase_rag/utils/token_utils.py
|
|
468
|
+
codebase_rag/utils/toml_writer.py
|
|
465
469
|
codebase_rag/workspaces/__init__.py
|
|
466
470
|
codebase_rag/workspaces/cli.py
|
|
467
471
|
codebase_rag/workspaces/constants.py
|
|
@@ -5,7 +5,6 @@ pydantic-ai-slim[anthropic,google,openai]>=2.0.0
|
|
|
5
5
|
pydantic-settings>=2.12.0
|
|
6
6
|
python-dotenv>=1.2.1
|
|
7
7
|
tiktoken>=0.12.0
|
|
8
|
-
tomli-w>=1.2.0
|
|
9
8
|
tree-sitter-python>=0.25.0
|
|
10
9
|
tree-sitter==0.26.0
|
|
11
10
|
watchdog>=6.0.0
|
|
@@ -15,15 +14,13 @@ prompt-toolkit>=3.0.52
|
|
|
15
14
|
diff-match-patch>=20241021
|
|
16
15
|
click>=8.3.3
|
|
17
16
|
protobuf>=6.33.5
|
|
18
|
-
|
|
19
|
-
huggingface-hub[hf-xet]>=1.7.2
|
|
17
|
+
pyyaml>=6.0
|
|
20
18
|
pathspec>=1.0.4
|
|
21
19
|
pygments>=2.20.0
|
|
20
|
+
httpx>=0.28.1
|
|
22
21
|
certifi>=2026.10.23
|
|
23
22
|
regex>=2024.11.6
|
|
24
|
-
|
|
25
|
-
[:platform_python_implementation == "CPython" and ((sys_platform == "linux" and (platform_machine == "x86_64" or platform_machine == "aarch64")) or sys_platform == "darwin" or (sys_platform == "win32" and platform_machine == "AMD64"))]
|
|
26
|
-
cgr-graph-rs<0.2,>=0.1.5
|
|
23
|
+
cgr-graph-rs<0.2,>=0.1.7
|
|
27
24
|
|
|
28
25
|
[ast-grep]
|
|
29
26
|
ast-grep-py>=0.51.0
|
|
@@ -50,6 +47,7 @@ qdrant-client>=1.9.0
|
|
|
50
47
|
grpcio>=1.84.1
|
|
51
48
|
torch>=2.6.0
|
|
52
49
|
transformers>=5.0.0
|
|
50
|
+
huggingface-hub[hf-xet]>=1.7.2
|
|
53
51
|
|
|
54
52
|
[semantic:(sys_platform == "linux" and (platform_machine == "x86_64" or platform_machine == "aarch64")) or sys_platform == "darwin" or (sys_platform == "win32" and platform_machine == "AMD64")]
|
|
55
53
|
sqlite-vec>=0.1.9
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"""Code Graph RAG: build a queryable graph of a codebase and reason over it."""
|
|
2
|
+
|
|
3
|
+
from . import tree_sitter_point as _tree_sitter_point # noqa: F401
|
|
4
|
+
from .embedded_graph.extension import require_rust_extension as _require_rust_extension
|
|
5
|
+
|
|
6
|
+
# The Rust extension does the work behind this package's interface, and
|
|
7
|
+
# there is no pure-Python stand-in: without it, nothing here runs.
|
|
8
|
+
_require_rust_extension()
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# ast-grep security rules for Python (issue #413).
|
|
2
|
+
# Each match becomes a SecurityIssue node linked to the file's Module via
|
|
3
|
+
# HAS_VULNERABILITY. Rules are heuristic; treat findings as review prompts.
|
|
4
|
+
ast_grep_id: python
|
|
5
|
+
extensions: [.py]
|
|
6
|
+
rules:
|
|
7
|
+
- id: sqli_concat
|
|
8
|
+
message: "Possible SQL injection: query built with string concatenation or % formatting"
|
|
9
|
+
rule:
|
|
10
|
+
any:
|
|
11
|
+
- pattern: "$OBJ.execute($A + $B)"
|
|
12
|
+
# (%) matches only when a string literal is present, so a numeric modulo
|
|
13
|
+
# like execute(index % shard_count) is not mistaken for query formatting.
|
|
14
|
+
- all:
|
|
15
|
+
- pattern: "$OBJ.execute($A % $B)"
|
|
16
|
+
- has: { kind: string, stopBy: end }
|
|
17
|
+
- id: sqli_fstring
|
|
18
|
+
message: "Possible SQL injection: execute() called with an f-string"
|
|
19
|
+
# The callee is execute/executemany and the f-string is one of ITS
|
|
20
|
+
# arguments. Searching the whole subtree for each (issue #2691) matched a
|
|
21
|
+
# keyword argument named `execute`, an f-string beside a constant query,
|
|
22
|
+
# and every call enclosing a real one, once per enclosing call. The search
|
|
23
|
+
# descends only through parentheses and adjacent-literal concatenation, so
|
|
24
|
+
# `execute((f"..."))` and `execute(f"..." " LIMIT 1")` are still found
|
|
25
|
+
# while an f-string inside a parameter tuple or a nested call is not.
|
|
26
|
+
rule:
|
|
27
|
+
kind: call
|
|
28
|
+
all:
|
|
29
|
+
- has: { field: function, regex: '(?:^|\.)execute(?:many)?$' }
|
|
30
|
+
- has:
|
|
31
|
+
field: arguments
|
|
32
|
+
has:
|
|
33
|
+
kind: string
|
|
34
|
+
regex: '^(?i:f|rf|fr)[\x27"]'
|
|
35
|
+
stopBy:
|
|
36
|
+
not:
|
|
37
|
+
any:
|
|
38
|
+
- kind: parenthesized_expression
|
|
39
|
+
- kind: concatenated_string
|
|
40
|
+
- id: sqli_format
|
|
41
|
+
message: "Possible SQL injection: query built with str.format()"
|
|
42
|
+
# `"... {}".format(u)` builds the query as `+`, `%` and f-strings do
|
|
43
|
+
# (issue #2863). The query is execute's first argument, the receiver a
|
|
44
|
+
# string literal, and at least one formatted value is not a constant, so
|
|
45
|
+
# `.format(5)`, a value formatted into the bound parameters and a string
|
|
46
|
+
# built inside a nested call stay clean. Parentheses around the query, the
|
|
47
|
+
# receiver or a value build the same string, so each is read through them:
|
|
48
|
+
# `field` with `stopBy` looks through only one pair, hence the nesting.
|
|
49
|
+
rule:
|
|
50
|
+
kind: call
|
|
51
|
+
all:
|
|
52
|
+
- has: { field: function, regex: '(?:^|\.)execute(?:many)?$' }
|
|
53
|
+
- has:
|
|
54
|
+
field: arguments
|
|
55
|
+
has:
|
|
56
|
+
kind: call
|
|
57
|
+
nthChild: 1
|
|
58
|
+
all:
|
|
59
|
+
- has:
|
|
60
|
+
field: function
|
|
61
|
+
kind: attribute
|
|
62
|
+
all:
|
|
63
|
+
- has:
|
|
64
|
+
field: object
|
|
65
|
+
any:
|
|
66
|
+
- kind: string
|
|
67
|
+
- kind: concatenated_string
|
|
68
|
+
- kind: parenthesized_expression
|
|
69
|
+
has:
|
|
70
|
+
any: [{ kind: string }, { kind: concatenated_string }]
|
|
71
|
+
stopBy:
|
|
72
|
+
not: { kind: parenthesized_expression }
|
|
73
|
+
- has: { field: attribute, regex: '^format$' }
|
|
74
|
+
- has:
|
|
75
|
+
field: arguments
|
|
76
|
+
has:
|
|
77
|
+
any:
|
|
78
|
+
- kind: identifier
|
|
79
|
+
not: { inside: { kind: keyword_argument, field: name } }
|
|
80
|
+
- kind: attribute
|
|
81
|
+
- kind: subscript
|
|
82
|
+
- kind: call
|
|
83
|
+
- kind: binary_operator
|
|
84
|
+
- kind: conditional_expression
|
|
85
|
+
- kind: list_splat
|
|
86
|
+
- kind: dictionary_splat
|
|
87
|
+
- kind: string
|
|
88
|
+
has: { kind: interpolation }
|
|
89
|
+
stopBy:
|
|
90
|
+
not:
|
|
91
|
+
any:
|
|
92
|
+
- kind: parenthesized_expression
|
|
93
|
+
- kind: keyword_argument
|
|
94
|
+
- kind: concatenated_string
|
|
95
|
+
stopBy:
|
|
96
|
+
not: { kind: parenthesized_expression }
|
|
97
|
+
- id: hardcoded_secret
|
|
98
|
+
# Security rule: favour recall. Value must be a non-trivial literal (>=8
|
|
99
|
+
# chars) that is not a format/message template (an f-string/.format {..}
|
|
100
|
+
# placeholder or a printf %s/%d specifier). Braces and % conversions are the
|
|
101
|
+
# only exclusions so real secrets that legitimately contain %, spaces, URLs
|
|
102
|
+
# with embedded credentials, or SCREAMING_SNAKE shapes are still caught.
|
|
103
|
+
# Ceiling: without entropy scoring, identifier/word/URL-name literals (e.g.
|
|
104
|
+
# "OPENAI_API_KEY", "cl100k_base") still surface as review prompts; that
|
|
105
|
+
# residual is the known limit of regex-only secret detection, not a defect.
|
|
106
|
+
message: "Hardcoded secret assigned to a credential-named variable"
|
|
107
|
+
rule:
|
|
108
|
+
kind: assignment
|
|
109
|
+
all:
|
|
110
|
+
- has: { field: left, regex: '(?i)(password|secret|api_key|token)' }
|
|
111
|
+
- has:
|
|
112
|
+
field: right
|
|
113
|
+
all:
|
|
114
|
+
- kind: string
|
|
115
|
+
- regex: '^.{10,}$'
|
|
116
|
+
- not:
|
|
117
|
+
any:
|
|
118
|
+
- regex: '\{[^{}]*\}'
|
|
119
|
+
- regex: '%[sdrifeEgGxXoc(]'
|
|
120
|
+
- id: eval_use
|
|
121
|
+
message: "eval() executes arbitrary code"
|
|
122
|
+
rule:
|
|
123
|
+
pattern: "eval($$$)"
|
|
124
|
+
- id: exec_use
|
|
125
|
+
message: "exec() executes arbitrary code"
|
|
126
|
+
rule:
|
|
127
|
+
pattern: "exec($$$)"
|
|
128
|
+
- id: os_system_concat
|
|
129
|
+
message: "Possible command injection: os.system() with concatenation"
|
|
130
|
+
rule:
|
|
131
|
+
pattern: "os.system($A + $B)"
|
|
132
|
+
- id: os_system_fstring
|
|
133
|
+
message: "Possible command injection: os.system() with an f-string"
|
|
134
|
+
# The command f-string must interpolate something: `f"ping localhost"` is
|
|
135
|
+
# a constant (issue #2863).
|
|
136
|
+
rule:
|
|
137
|
+
kind: call
|
|
138
|
+
all:
|
|
139
|
+
- has: { field: function, regex: '^os\.system$' }
|
|
140
|
+
- has:
|
|
141
|
+
field: arguments
|
|
142
|
+
has:
|
|
143
|
+
kind: string
|
|
144
|
+
regex: '^(?i:f|rf|fr)[\x27"]'
|
|
145
|
+
has: { kind: interpolation }
|
|
146
|
+
stopBy:
|
|
147
|
+
not:
|
|
148
|
+
any:
|
|
149
|
+
- kind: parenthesized_expression
|
|
150
|
+
- kind: concatenated_string
|
|
151
|
+
- id: os_system_format
|
|
152
|
+
message: "Possible command injection: os.system() with str.format()"
|
|
153
|
+
# Same str.format() shape as sqli_format (issue #2863).
|
|
154
|
+
rule:
|
|
155
|
+
kind: call
|
|
156
|
+
all:
|
|
157
|
+
- has: { field: function, regex: '^os\.system$' }
|
|
158
|
+
- has:
|
|
159
|
+
field: arguments
|
|
160
|
+
has:
|
|
161
|
+
kind: call
|
|
162
|
+
nthChild: 1
|
|
163
|
+
all:
|
|
164
|
+
- has:
|
|
165
|
+
field: function
|
|
166
|
+
kind: attribute
|
|
167
|
+
all:
|
|
168
|
+
- has:
|
|
169
|
+
field: object
|
|
170
|
+
any:
|
|
171
|
+
- kind: string
|
|
172
|
+
- kind: concatenated_string
|
|
173
|
+
- kind: parenthesized_expression
|
|
174
|
+
has:
|
|
175
|
+
any: [{ kind: string }, { kind: concatenated_string }]
|
|
176
|
+
stopBy:
|
|
177
|
+
not: { kind: parenthesized_expression }
|
|
178
|
+
- has: { field: attribute, regex: '^format$' }
|
|
179
|
+
- has:
|
|
180
|
+
field: arguments
|
|
181
|
+
has:
|
|
182
|
+
any:
|
|
183
|
+
- kind: identifier
|
|
184
|
+
not: { inside: { kind: keyword_argument, field: name } }
|
|
185
|
+
- kind: attribute
|
|
186
|
+
- kind: subscript
|
|
187
|
+
- kind: call
|
|
188
|
+
- kind: binary_operator
|
|
189
|
+
- kind: conditional_expression
|
|
190
|
+
- kind: list_splat
|
|
191
|
+
- kind: dictionary_splat
|
|
192
|
+
- kind: string
|
|
193
|
+
has: { kind: interpolation }
|
|
194
|
+
stopBy:
|
|
195
|
+
not:
|
|
196
|
+
any:
|
|
197
|
+
- kind: parenthesized_expression
|
|
198
|
+
- kind: keyword_argument
|
|
199
|
+
- kind: concatenated_string
|
|
200
|
+
stopBy:
|
|
201
|
+
not: { kind: parenthesized_expression }
|
|
202
|
+
- id: subprocess_shell
|
|
203
|
+
message: "subprocess called with shell=True enables command injection"
|
|
204
|
+
# The call's OWN `shell=True` keyword argument: the text anywhere under
|
|
205
|
+
# the call also matched a string argument (`["grep", "shell=True"]`), a
|
|
206
|
+
# comment between the arguments or another call's keyword, none of which
|
|
207
|
+
# runs a shell (issue #2869).
|
|
208
|
+
rule:
|
|
209
|
+
pattern: "subprocess.$M($$$)"
|
|
210
|
+
has:
|
|
211
|
+
field: arguments
|
|
212
|
+
has:
|
|
213
|
+
kind: keyword_argument
|
|
214
|
+
all:
|
|
215
|
+
- has: { field: name, regex: '^shell$' }
|
|
216
|
+
- has: { field: value, kind: 'true' }
|
|
217
|
+
- id: yaml_load
|
|
218
|
+
message: "yaml.load() without SafeLoader can execute arbitrary code"
|
|
219
|
+
# A SafeLoader or CSafeLoader, by keyword or as the second positional
|
|
220
|
+
# argument, is the fix this message asks for (issue #2691).
|
|
221
|
+
rule:
|
|
222
|
+
pattern: "yaml.load($$$)"
|
|
223
|
+
not:
|
|
224
|
+
has:
|
|
225
|
+
field: arguments
|
|
226
|
+
has:
|
|
227
|
+
any:
|
|
228
|
+
- kind: keyword_argument
|
|
229
|
+
regex: '^Loader\s*=\s*(?:yaml\.)?C?SafeLoader$'
|
|
230
|
+
- regex: '^(?:yaml\.)?C?SafeLoader$'
|
|
231
|
+
- id: pickle_loads
|
|
232
|
+
message: "pickle.loads() on untrusted data executes arbitrary code"
|
|
233
|
+
rule:
|
|
234
|
+
pattern: "pickle.loads($$$)"
|
|
@@ -2435,6 +2435,75 @@ def rename_command(
|
|
|
2435
2435
|
raise typer.Exit(code=1)
|
|
2436
2436
|
|
|
2437
2437
|
|
|
2438
|
+
@app.command(
|
|
2439
|
+
name=ch.CLICommandName.MOVE,
|
|
2440
|
+
help=ch.CMD_MOVE,
|
|
2441
|
+
short_help=ch.CMD_MOVE,
|
|
2442
|
+
epilog=ch.EXAMPLES_MOVE,
|
|
2443
|
+
rich_help_panel=ch.PANEL_USE,
|
|
2444
|
+
)
|
|
2445
|
+
def move_command(
|
|
2446
|
+
qualified_name: str = typer.Argument(..., help=ch.HELP_MOVE_QN),
|
|
2447
|
+
target_module: str = typer.Argument(..., help=ch.HELP_MOVE_TARGET),
|
|
2448
|
+
repo_path: Path = typer.Option(
|
|
2449
|
+
Path(cs.MCP_DEFAULT_DIRECTORY),
|
|
2450
|
+
"--repo-path",
|
|
2451
|
+
exists=True,
|
|
2452
|
+
file_okay=False,
|
|
2453
|
+
help=ch.HELP_GRAPH_REPO_PATH,
|
|
2454
|
+
),
|
|
2455
|
+
project: str | None = typer.Option(None, "--project", help=ch.HELP_GRAPH_PROJECT),
|
|
2456
|
+
keep_alias: bool = typer.Option(
|
|
2457
|
+
False, "--keep-alias", help=ch.HELP_MOVE_KEEP_ALIAS
|
|
2458
|
+
),
|
|
2459
|
+
dry_run: bool = typer.Option(False, "--dry-run", help=ch.HELP_MOVE_DRY_RUN),
|
|
2460
|
+
) -> None:
|
|
2461
|
+
from .editing.move import MoveRefused, move
|
|
2462
|
+
from .graph_cli import _project_and_fetch
|
|
2463
|
+
from .graph_query import source_root_for
|
|
2464
|
+
|
|
2465
|
+
name, fetch_all, ingestor = _project_and_fetch(project, repo_path)
|
|
2466
|
+
with ingestor:
|
|
2467
|
+
# An explicit --project may name a graph indexed from another
|
|
2468
|
+
# checkout; its repo-relative paths must not be edited under this one.
|
|
2469
|
+
if source_root_for(fetch_all, name, repo_path) is None:
|
|
2470
|
+
typer.echo(
|
|
2471
|
+
cs.MOVE_CLI_WRONG_ROOT.format(project=name, root=repo_path.resolve()),
|
|
2472
|
+
err=True,
|
|
2473
|
+
)
|
|
2474
|
+
raise typer.Exit(code=1)
|
|
2475
|
+
parsers, queries = load_parsers()
|
|
2476
|
+
from .graph_updater import GraphUpdater
|
|
2477
|
+
|
|
2478
|
+
updater = GraphUpdater(
|
|
2479
|
+
ingestor=ingestor,
|
|
2480
|
+
repo_path=repo_path.resolve(),
|
|
2481
|
+
parsers=parsers,
|
|
2482
|
+
queries=queries,
|
|
2483
|
+
project_name=name,
|
|
2484
|
+
)
|
|
2485
|
+
try:
|
|
2486
|
+
report = move(
|
|
2487
|
+
repo_path.resolve(),
|
|
2488
|
+
fetch_all,
|
|
2489
|
+
name,
|
|
2490
|
+
qualified_name,
|
|
2491
|
+
target_module,
|
|
2492
|
+
keep_alias=keep_alias,
|
|
2493
|
+
dry_run=dry_run,
|
|
2494
|
+
reingest=updater.reingest,
|
|
2495
|
+
)
|
|
2496
|
+
except MoveRefused as refused:
|
|
2497
|
+
typer.echo(str(refused), err=True)
|
|
2498
|
+
raise typer.Exit(code=1) from refused
|
|
2499
|
+
payload = dict(report._asdict())
|
|
2500
|
+
if report.verdict is not None:
|
|
2501
|
+
payload[cs.KEY_VERDICT] = report.verdict._asdict()
|
|
2502
|
+
typer.echo(json.dumps(payload, indent=cs.MCP_JSON_INDENT, sort_keys=True))
|
|
2503
|
+
if not report.applied and not dry_run:
|
|
2504
|
+
raise typer.Exit(code=1)
|
|
2505
|
+
|
|
2506
|
+
|
|
2438
2507
|
@app.command(
|
|
2439
2508
|
name=ch.CLICommandName.CHANGE_SIGNATURE,
|
|
2440
2509
|
help=ch.CMD_CHANGE_SIGNATURE,
|
|
@@ -3217,6 +3286,19 @@ def _notice_single_project_endpoint_roots(show_progress: bool) -> None:
|
|
|
3217
3286
|
typer.echo(cs.CLI_DEADCODE_SINGLE_PROJECT_ENDPOINTS, err=True)
|
|
3218
3287
|
|
|
3219
3288
|
|
|
3289
|
+
def _refuse_without_endpoint_data(
|
|
3290
|
+
error: ex.EndpointDataMissingError, show_progress: bool
|
|
3291
|
+
) -> NoReturn:
|
|
3292
|
+
"""No verdict, rather than one that reads as nothing unreachable. A
|
|
3293
|
+
machine format owns stdout, so the refusal goes to stderr there, as the
|
|
3294
|
+
single-project notice does."""
|
|
3295
|
+
if show_progress:
|
|
3296
|
+
app_context.console.print(style(str(error), cs.Color.RED))
|
|
3297
|
+
else:
|
|
3298
|
+
typer.echo(str(error), err=True)
|
|
3299
|
+
raise typer.Exit(1)
|
|
3300
|
+
|
|
3301
|
+
|
|
3220
3302
|
@app.command(
|
|
3221
3303
|
name=ch.CLICommandName.DEAD_CODE,
|
|
3222
3304
|
help=ch.DESC_DEAD_CODE,
|
|
@@ -3291,26 +3373,33 @@ def dead_code(
|
|
|
3291
3373
|
choice = ProjectChoice(None)
|
|
3292
3374
|
rows: list[ResultRow] = []
|
|
3293
3375
|
structural_tier_symbols = 0
|
|
3376
|
+
endpoint_gap: ex.EndpointDataMissingError | None = None
|
|
3294
3377
|
try:
|
|
3295
3378
|
with connect_memgraph(batch_size=1) as ingestor:
|
|
3296
3379
|
projects = ingestor.list_projects()
|
|
3297
3380
|
choice = choose_project(chosen, repo_path, projects, ingestor)
|
|
3298
3381
|
if (resolved := choice.name) is not None:
|
|
3299
3382
|
logger.info(ls.DEADCODE_SCANNING.format(project_name=resolved))
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3383
|
+
try:
|
|
3384
|
+
rows, structural_tier_symbols = collect_dead_code_with_coverage(
|
|
3385
|
+
ingestor,
|
|
3386
|
+
resolved,
|
|
3387
|
+
_dead_code_config(
|
|
3388
|
+
include_tests,
|
|
3389
|
+
include_classes,
|
|
3390
|
+
entry_point,
|
|
3391
|
+
decorator_root,
|
|
3392
|
+
min_resolution,
|
|
3393
|
+
endpoint_roots,
|
|
3394
|
+
public_roots,
|
|
3395
|
+
),
|
|
3396
|
+
)
|
|
3397
|
+
except ex.EndpointDataMissingError as e:
|
|
3398
|
+
# Held until the connection closes: a finding about the
|
|
3399
|
+
# project, which the service layer would log on exit as a
|
|
3400
|
+
# failed session with a traceback (issue #2896).
|
|
3401
|
+
endpoint_gap = e
|
|
3402
|
+
if not endpoint_roots and len(projects) <= 1 and not endpoint_gap:
|
|
3314
3403
|
_notice_single_project_endpoint_roots(show_progress)
|
|
3315
3404
|
except GraphUnavailableError:
|
|
3316
3405
|
raise
|
|
@@ -3321,6 +3410,8 @@ def dead_code(
|
|
|
3321
3410
|
logger.exception(ls.DEADCODE_ERROR.format(error=e))
|
|
3322
3411
|
raise typer.Exit(1) from e
|
|
3323
3412
|
|
|
3413
|
+
if endpoint_gap is not None:
|
|
3414
|
+
_refuse_without_endpoint_data(endpoint_gap, show_progress)
|
|
3324
3415
|
resolved = _require_project(choice)
|
|
3325
3416
|
|
|
3326
3417
|
candidates = [
|