code-graph-rag 0.6.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.6.0/code_graph_rag.egg-info → code_graph_rag-0.6.30}/PKG-INFO +2 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/README.md +7 -4
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30/code_graph_rag.egg-info}/PKG-INFO +2 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/SOURCES.txt +2 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/requires.txt +1 -1
- code_graph_rag-0.6.30/codebase_rag/analyzers/ast_grep_rules/security/python.yaml +234 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/cli.py +69 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/cli_help.py +18 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_csharp.py +5 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_dart.py +4 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_js.py +3 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_nodes.py +3 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_python.py +44 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/cli.py +82 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/deadcode_roots.py +21 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/graph.py +105 -1
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/mcp.py +4 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/providers.py +9 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/trace.py +7 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/cypher_queries.py +8 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/dead_code.py +7 -0
- code_graph_rag-0.6.30/codebase_rag/dispatch_dependents.py +941 -0
- {code_graph_rag-0.6.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.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/rename.py +176 -9
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/graph_updater.py +419 -16
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/logs.py +4 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/tools.py +113 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/call_processor.py +11 -5
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/call_resolver.py +228 -27
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/type_inference.py +19 -10
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/__init__.py +8 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/utils.py +76 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/definition_processor.py +10 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/export_detection.py +15 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/function_ingest.py +2 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/utils.py +12 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/import_processor.py +440 -17
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/method_resolver.py +135 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/module_system.py +85 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/ast_analyzer.py +880 -64
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/expression_analyzer.py +1 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/type_inference.py +13 -2
- {code_graph_rag-0.6.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.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/type_facts.py +79 -4
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/type_inference.py +328 -52
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/utils.py +91 -3
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/providers/base.py +15 -1
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/structural_delta.py +78 -4
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/tool_descriptions.py +22 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/ebpf_pprof.py +4 -2
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/pprof.py +25 -3
- {code_graph_rag-0.6.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.0 → code_graph_rag-0.6.30}/pyproject.toml +2 -2
- code_graph_rag-0.6.0/codebase_rag/analyzers/ast_grep_rules/security/python.yaml +0 -107
- code_graph_rag-0.6.0/codebase_rag/parsers/py/with_analyzer.py +0 -288
- code_graph_rag-0.6.0/codebase_rag/utils/json_io.py +0 -31
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/LICENSE +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/PYPI_README.md +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/cgr/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/dependency_links.txt +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/entry_points.txt +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/code_graph_rag.egg-info/top_level.txt +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/_cli_env.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_analyzer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/c.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/cpp.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/csharp.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/dart.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/go.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/java.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/javascript.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/lua.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/php.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/python.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/ruby.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/rust.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/scala.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/tsx.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/patterns/typescript.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/c.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/cpp.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/csharp.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/dart.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/go.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/java.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/javascript.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/lua.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/php.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/ruby.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/rust.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/scala.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/tsx.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/security/typescript.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/c.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/cpp.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/csharp.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/dart.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/go.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/java.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/javascript.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/lua.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/php.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/python.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/ruby.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/rust.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/scala.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/tsx.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/analyzers/ast_grep_rules/smells/typescript.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/ast_cache.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/capture.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/check_isolation.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/checkout_state.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/cli_runtime.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/config.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/console_marks.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_cpp.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_go.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_java.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_julia.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_lua.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_php.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_rust.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_scala.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/ast_sql.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/build.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/core.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/deps.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/duplicates.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/embedded_graph.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/fqn_specs.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/health.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/interface.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/lang_tooling.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/languages.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/notebook.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/port.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/security.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/sqlite_vectors.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/stdlib_types.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/constants/structural.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/context_pruning.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/context_slice.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/crash_correlation.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/decorators.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/docker-compose.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/duplicates.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/cli.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/import_paths.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/imports.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/occurrences.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/patcher.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_bind.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_contract.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_js.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_js_bind.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/signature_spec.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/sites.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editing/transaction.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/editor_links.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/compiler.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/connection.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/cypher_ast.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/executor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/expressions.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/extension.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/functions.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/lexer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/limits.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/native.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/parser.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/procedures.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/sql.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/store.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedded_graph/types.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/embedder.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/exceptions.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/flow_verdict.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/function_registry.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/gloss.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/gloss_anchor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/gloss_repair.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/graph_audit.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/graph_cli.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/graph_dialects.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/graph_loader.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/graph_query.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/instructions_trust.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/interface_skip.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/language_spec.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/main.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/client.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/mcp/server.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/mgclient_compat.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/mgclient_probe.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/models.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parser_fingerprint.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parser_loader.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/anchor_hash.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_fingerprint.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/bash.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/elixir.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/haskell.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/kotlin.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/nix.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/ruby.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/solidity.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_patterns/swift.yaml +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_scope.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/ast_grep_tier.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/build_lock.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/base_targets.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/cpp_modules.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/identity.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/method_override.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/mixin.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/node_type.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/parent_extraction.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/relationships.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/class_ingest/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/contract_linking.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/contracts.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/class_macro.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/function_values.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/local_types.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/overloads.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/preproc_recovery.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/trailing_annotation.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/constants.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/cpp_frontend/qn.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/arity.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.cs +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.csproj +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/csharp_frontend/roslyn/Program.cs +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/package_paths.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dart/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/definition_docstring.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dependency_parser.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/dispatch_registry.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/document_tier.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/endpoint_prefixes.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/endpoint_routes.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/endpoints.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/enum_variants.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/factory.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/field_nodes.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flat_module.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flow_access/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flow_access/constants.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/flow_access/processor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontend_mode.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/cpp.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/csharp.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/go.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/java.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/protocol.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/python.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/frontends/registry.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/builds.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/interface_ingest.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/interfaces.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/link_state.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/module_paths.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/gotypes/go.mod +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/gotypes/go.sum +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/go_frontend/gotypes/main.go +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/base.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/cpp.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/java.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/js_ts.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/julia.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/lua.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/php.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/protocol.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/python.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/registry.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/handlers/rust.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/interface_fingerprint.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/constants.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/descriptor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/extract.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/models.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/processor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/registry.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/resource_names.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/io_access/url_folding.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/type_resolver.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java/variable_analyzer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_frontend/javac/cgr/Frontend.java +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_generated.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/java_lombok.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/commonjs_exports.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/ingest.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/module_paths.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/overloads.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/reexports.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/js_ts/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/julia/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/julia/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/lua/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/lua/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/lua/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/module_docstring.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/native_trees.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/notebook.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/parameter_nodes.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/class_names.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/namespaces.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/php/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/positional_params.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/class_aliases.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/definition_index.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/flow_bindings.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/forward_refs.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/overloads.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/patterns.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/receiver_rebinding.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py/variable_analyzer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/py_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/python_source_roots.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rpc_exposure.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/cargo_semver.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/type_inference.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/rs/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/scala/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/scala/utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/semantic_call_join.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/sql_ddl.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/sql_recovery.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/stdlib_extractor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/string_call.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/parsers/structure_processor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/path_filters.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/port_cli.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/port_parity.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/project_selection.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/prompts.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/providers/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/providers/litellm.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/c_sharp.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/dart.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/java.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/javascript.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/julia.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/php.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/python.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/rust.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/queries/highlights/typescript.scm +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/readme_sections.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/schema_builder.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/schema_parse.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/schemas.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/sensitive_paths.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/anthropic_token_counter.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/cypher_guard.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/filtering.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/gloss_cleanup.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/graph_diff.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/graph_service.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/llm.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/neo4j_driver.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/protobuf_service.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/provenance.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/resource_cleanup.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/services/usage_cost.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/source_checkout.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/sql_names.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/sqlite_vectors.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/stack/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/stack/cli.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/stack/constants.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/stack/health.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/stack/manager.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/structural_check.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/sync_guard.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/sync_lock.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/taint.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tool_errors.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/ast_grep_service.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/code_retrieval.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/codebase_query.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/directory_lister.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/duplicate_detection.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/file_editor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/file_reader.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/file_writer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/graph_refresh.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/graph_rerank.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/health_checker.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/language.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/language_catalog.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/research.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/semantic_search.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/shell_command.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/structural_editor.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/structural_search.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tools/web_search.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/carry.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/cli.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/cpuprofile.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/dispatch_site.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/ingest.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/instrumented.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/pytest_plugin.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/records.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/resolution.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/rust_pprof.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/sourcemap.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/speedscope.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/tracer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/trace/xdebug.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/tree_sitter_point.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/unixcoder.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/cpp_signatures.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/dependencies.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/endpoints.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/fqn_resolver.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/interruptible_thread.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/path_utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/process_owner.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/qn_markers.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/rich_markdown.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/safe_xml.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/source_encoding.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/source_extraction.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/terminal_console.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/token_utils.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/utils/toml_writer.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/vector_store.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/watch.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/cli.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/constants.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/models.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codebase_rag/workspaces/storage.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codec/__init__.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codec/schema.proto +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codec/schema_pb2.py +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/codec/schema_pb2.pyi +0 -0
- {code_graph_rag-0.6.0 → code_graph_rag-0.6.30}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.6.
|
|
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
|
|
@@ -43,7 +43,7 @@ Requires-Dist: pygments>=2.20.0
|
|
|
43
43
|
Requires-Dist: httpx>=0.28.1
|
|
44
44
|
Requires-Dist: certifi>=2026.10.23
|
|
45
45
|
Requires-Dist: regex>=2024.11.6
|
|
46
|
-
Requires-Dist: cgr-graph-rs<0.2,>=0.1.
|
|
46
|
+
Requires-Dist: cgr-graph-rs<0.2,>=0.1.7
|
|
47
47
|
Provides-Extra: test
|
|
48
48
|
Requires-Dist: jedi>=0.19; extra == "test"
|
|
49
49
|
Requires-Dist: pytest>=8.4.1; extra == "test"
|
|
@@ -61,10 +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
|
-
- **
|
|
67
|
-
- **
|
|
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.
|
|
68
71
|
<!-- /SECTION:latest_news -->
|
|
69
72
|
|
|
70
73
|
See [NEWS.md](NEWS.md) for the full history.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.6.
|
|
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
|
|
@@ -43,7 +43,7 @@ Requires-Dist: pygments>=2.20.0
|
|
|
43
43
|
Requires-Dist: httpx>=0.28.1
|
|
44
44
|
Requires-Dist: certifi>=2026.10.23
|
|
45
45
|
Requires-Dist: regex>=2024.11.6
|
|
46
|
-
Requires-Dist: cgr-graph-rs<0.2,>=0.1.
|
|
46
|
+
Requires-Dist: cgr-graph-rs<0.2,>=0.1.7
|
|
47
47
|
Provides-Extra: test
|
|
48
48
|
Requires-Dist: jedi>=0.19; extra == "test"
|
|
49
49
|
Requires-Dist: pytest>=8.4.1; extra == "test"
|
|
@@ -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
|
|
@@ -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,
|
|
@@ -24,6 +24,7 @@ class CLICommandName(StrEnum):
|
|
|
24
24
|
CHECK = "check"
|
|
25
25
|
RENAME = "rename"
|
|
26
26
|
CHANGE_SIGNATURE = "change-signature"
|
|
27
|
+
MOVE = "move"
|
|
27
28
|
CONTEXT = "context"
|
|
28
29
|
PORT = "port"
|
|
29
30
|
STOP = "stop"
|
|
@@ -227,6 +228,22 @@ HELP_CHANGE_SIGNATURE_ALLOW_HEURISTIC = (
|
|
|
227
228
|
"a trace as well, instead of listing them as unmapped."
|
|
228
229
|
)
|
|
229
230
|
HELP_CHANGE_SIGNATURE_DRY_RUN = "Print the plan and diff without writing anything."
|
|
231
|
+
CMD_MOVE = (
|
|
232
|
+
"Move a module-level definition to another module: importers rewritten, "
|
|
233
|
+
"needed imports carried, refused when it would create an import cycle."
|
|
234
|
+
)
|
|
235
|
+
EXAMPLES_MOVE = (
|
|
236
|
+
"Examples:\n cgr move myproj.pkg.util.helper pkg.core --dry-run\n"
|
|
237
|
+
" cgr move myproj.pkg.util.helper pkg/core.py --keep-alias"
|
|
238
|
+
)
|
|
239
|
+
HELP_MOVE_QN = "Qualified name of the module-level definition to move."
|
|
240
|
+
HELP_MOVE_DRY_RUN = (
|
|
241
|
+
"Print the plan (files, importers, copied imports) without writing anything."
|
|
242
|
+
)
|
|
243
|
+
HELP_MOVE_TARGET = "Destination module: dotted name (pkg.core) or repo-relative path."
|
|
244
|
+
HELP_MOVE_KEEP_ALIAS = (
|
|
245
|
+
"Leave a re-export at the old location so the old import path still works."
|
|
246
|
+
)
|
|
230
247
|
CMD_CONTEXT = (
|
|
231
248
|
"Print a graph-ranked context slice for a symbol, location or task within "
|
|
232
249
|
"a token budget: source, caller lines, callee signatures, types, tests, docs."
|
|
@@ -757,6 +774,7 @@ CLI_COMMANDS: dict[CLICommandName, str] = {
|
|
|
757
774
|
CLICommandName.CHECK: CMD_CHECK,
|
|
758
775
|
CLICommandName.RENAME: CMD_RENAME,
|
|
759
776
|
CLICommandName.CHANGE_SIGNATURE: CMD_CHANGE_SIGNATURE,
|
|
777
|
+
CLICommandName.MOVE: CMD_MOVE,
|
|
760
778
|
CLICommandName.CONTEXT: CMD_CONTEXT,
|
|
761
779
|
CLICommandName.PORT: CMD_PORT,
|
|
762
780
|
CLICommandName.WORKSPACE: CMD_WORKSPACE,
|
|
@@ -110,6 +110,11 @@ TS_CSHARP_BASE_LIST = "base_list"
|
|
|
110
110
|
# or a `predefined_type` (an enum's underlying integral type -> not a base).
|
|
111
111
|
TS_CSHARP_GENERIC_NAME = "generic_name"
|
|
112
112
|
TS_CSHARP_CAST_EXPRESSION = "cast_expression"
|
|
113
|
+
# `x as T`, the safe cast: its `right` field is the asserted type (#2892).
|
|
114
|
+
TS_CSHARP_AS_EXPRESSION = "as_expression"
|
|
115
|
+
TS_CSHARP_CAST_RECEIVERS = frozenset(
|
|
116
|
+
{TS_CSHARP_CAST_EXPRESSION, TS_CSHARP_AS_EXPRESSION}
|
|
117
|
+
)
|
|
113
118
|
TS_CSHARP_POSTFIX_UNARY_EXPRESSION = "postfix_unary_expression"
|
|
114
119
|
TS_CSHARP_IMPLICIT_PARAMETER = "implicit_parameter"
|
|
115
120
|
TS_CSHARP_FIELD_TYPE_PARAMETERS = "type_parameters"
|
|
@@ -209,6 +209,10 @@ TS_DART_TYPE_IDENTIFIER = "type_identifier"
|
|
|
209
209
|
# `import '...' as name;` alias
|
|
210
210
|
TS_DART_IMPORT_SPECIFICATION = "import_specification"
|
|
211
211
|
DART_IMPORT_ALIAS_KEYWORD = "as"
|
|
212
|
+
# `show A, B` / `hide C` after a directive's URI: the keyword is the
|
|
213
|
+
# combinator's first child, the names it lists are its identifiers.
|
|
214
|
+
TS_DART_COMBINATOR = "combinator"
|
|
215
|
+
TS_DART_SHOW = "show"
|
|
212
216
|
|
|
213
217
|
# URI scheme prefixes distinguishing external (dart:/package:) from
|
|
214
218
|
# first-party (relative path) imports.
|
|
@@ -92,6 +92,9 @@ TS_NON_NULL_EXPRESSION = "non_null_expression"
|
|
|
92
92
|
TS_CAST_WRAPPER_TYPES = frozenset(
|
|
93
93
|
{TS_AS_EXPRESSION, TS_SATISFIES_EXPRESSION, TS_NON_NULL_EXPRESSION}
|
|
94
94
|
)
|
|
95
|
+
# The angle-bracket cast `<T>x`: transparent too, but its value is its LAST
|
|
96
|
+
# named child (the first is the type).
|
|
97
|
+
TS_TYPE_ASSERTION = "type_assertion"
|
|
95
98
|
|
|
96
99
|
# JS/TS ingest node types
|
|
97
100
|
TS_PAIR = "pair"
|
|
@@ -111,6 +111,7 @@ FIELD_OBJECT = "object"
|
|
|
111
111
|
FIELD_PROPERTY = "property"
|
|
112
112
|
FIELD_NAME = "name"
|
|
113
113
|
FIELD_ALIAS = "alias"
|
|
114
|
+
FIELD_SOURCE = "source"
|
|
114
115
|
FIELD_MODULE_NAME = "module_name"
|
|
115
116
|
FIELD_ARGUMENTS = "arguments"
|
|
116
117
|
FIELD_BODY = "body"
|
|
@@ -418,6 +419,8 @@ TS_NAMED_IMPORTS = "named_imports"
|
|
|
418
419
|
TS_IMPORT_SPECIFIER = "import_specifier"
|
|
419
420
|
TS_NAMESPACE_IMPORT = "namespace_import"
|
|
420
421
|
TS_IDENTIFIER = "identifier"
|
|
422
|
+
# `import.meta` (and `new.target`): a module's own URL in ESM.
|
|
423
|
+
TS_META_PROPERTY = "meta_property"
|
|
421
424
|
TS_VARIABLE_DECLARATOR = "variable_declarator"
|
|
422
425
|
TS_CALL_EXPRESSION = "call_expression"
|
|
423
426
|
TS_EXPORT_CLAUSE = "export_clause"
|
|
@@ -83,6 +83,7 @@ TS_PY_KEYWORD_SEPARATOR = "keyword_separator"
|
|
|
83
83
|
# carry (`f(*args)`, `f(**opts)`); the `_pattern` forms above are the
|
|
84
84
|
# definition-side spellings.
|
|
85
85
|
TS_PY_PARAMETERS = "parameters"
|
|
86
|
+
TS_PY_LAMBDA_PARAMETERS = "lambda_parameters"
|
|
86
87
|
TS_PY_LIST_SPLAT = "list_splat"
|
|
87
88
|
TS_PY_DICTIONARY_SPLAT = "dictionary_splat"
|
|
88
89
|
# Scopes nested in a function body, where a parameter's name may be re-bound
|
|
@@ -136,6 +137,8 @@ TS_PY_UNION_PATTERN = "union_pattern"
|
|
|
136
137
|
# `Foo(x=<pattern>)`, `*rest` / `**rest` inside a case pattern.
|
|
137
138
|
TS_PY_KEYWORD_PATTERN = "keyword_pattern"
|
|
138
139
|
TS_PY_SPLAT_PATTERN = "splat_pattern"
|
|
140
|
+
# `Foo(...)` in a case pattern: the class whose instances the arm matches.
|
|
141
|
+
TS_PY_CLASS_PATTERN = "class_pattern"
|
|
139
142
|
# `import x as y` / `from m import x as y`; the alias is a local binding.
|
|
140
143
|
TS_PY_ALIASED_IMPORT = "aliased_import"
|
|
141
144
|
TS_PY_WILDCARD_NODE = "_"
|
|
@@ -429,6 +432,32 @@ ABSTRACT_DECORATORS: frozenset[str] = frozenset({"abstractmethod", "abstractprop
|
|
|
429
432
|
STATIC_DECORATORS: frozenset[str] = frozenset({"staticmethod"})
|
|
430
433
|
# A class method binds `cls` even when called through its class.
|
|
431
434
|
CLASSMETHOD_DECORATORS: frozenset[str] = frozenset({"classmethod"})
|
|
435
|
+
# contextlib's generator-based context manager factories: a `with` target
|
|
436
|
+
# takes the generator's yield type, not the factory's return type (#3340).
|
|
437
|
+
PY_CONTEXTLIB_MODULE = "contextlib"
|
|
438
|
+
# Where generator annotations live: an aliased annotation base counts only
|
|
439
|
+
# when the import map resolves it here (#3340).
|
|
440
|
+
PY_GENERATOR_ANNOTATION_MODULES: frozenset[str] = frozenset(
|
|
441
|
+
{"typing", "typing_extensions", "collections.abc"}
|
|
442
|
+
)
|
|
443
|
+
CONTEXTMANAGER_DECORATORS: frozenset[str] = frozenset(
|
|
444
|
+
{"contextmanager", "asynccontextmanager"}
|
|
445
|
+
)
|
|
446
|
+
# The return annotations a contextmanager factory carries, each yielding
|
|
447
|
+
# its first type argument.
|
|
448
|
+
PY_GENERATOR_ANNOTATIONS: frozenset[str] = frozenset(
|
|
449
|
+
{"Iterator", "Generator", "AsyncIterator", "AsyncGenerator"}
|
|
450
|
+
)
|
|
451
|
+
# The fully qualified spellings, precomputed once: the decorator and
|
|
452
|
+
# yield-type checks rebuilt these sets on every call (#3340).
|
|
453
|
+
PY_CONTEXTMANAGER_DECORATOR_QNS: frozenset[str] = frozenset(
|
|
454
|
+
f"{PY_CONTEXTLIB_MODULE}.{name}" for name in CONTEXTMANAGER_DECORATORS
|
|
455
|
+
)
|
|
456
|
+
PY_GENERATOR_ANNOTATION_QNS: frozenset[str] = frozenset(
|
|
457
|
+
f"{module}.{name}"
|
|
458
|
+
for module in PY_GENERATOR_ANNOTATION_MODULES
|
|
459
|
+
for name in PY_GENERATOR_ANNOTATIONS
|
|
460
|
+
)
|
|
432
461
|
|
|
433
462
|
# Eager builtins that invoke a callable argument synchronously in the caller's
|
|
434
463
|
# stack frame, so the trace attributes the call to the enclosing function (no
|
|
@@ -531,6 +560,21 @@ PY_COMPREHENSION_TYPES = frozenset(
|
|
|
531
560
|
TS_PY_GENERATOR_EXPRESSION,
|
|
532
561
|
}
|
|
533
562
|
)
|
|
563
|
+
# Nodes whose parts may not be evaluated at all: the right operand of
|
|
564
|
+
# `and` / `or`, either arm of `a if c else b`, a comprehension's body and
|
|
565
|
+
# filters, an `elif` condition and a `case` pattern or guard. A binding
|
|
566
|
+
# inside one may never run (#3340).
|
|
567
|
+
PY_MAYBE_SKIPPED_TYPES = (
|
|
568
|
+
frozenset(
|
|
569
|
+
{
|
|
570
|
+
TS_PY_BOOLEAN_OPERATOR,
|
|
571
|
+
TS_PY_CONDITIONAL_EXPRESSION,
|
|
572
|
+
TS_PY_ELIF_CLAUSE,
|
|
573
|
+
TS_PY_CASE_CLAUSE,
|
|
574
|
+
}
|
|
575
|
+
)
|
|
576
|
+
| PY_COMPREHENSION_TYPES
|
|
577
|
+
)
|
|
534
578
|
# Trees whose scope walks stay cached (`ast_analyzer.scope_facts`). A cached
|
|
535
579
|
# tree stays alive outside the AST cache's memory cap, so the cache holds a
|
|
536
580
|
# few trees, all of whose scopes it keeps, rather than a number of scopes.
|
|
@@ -1007,6 +1007,13 @@ RENAME_SITELESS = (
|
|
|
1007
1007
|
"Cannot rename {qn}: {count} graph-known site(s) carry no rewrite location, "
|
|
1008
1008
|
"so the rename would leave them under the old name"
|
|
1009
1009
|
)
|
|
1010
|
+
# Go reads an identifier's first letter as its visibility (issue #2813).
|
|
1011
|
+
RENAME_GO_UNEXPORTS = (
|
|
1012
|
+
"Refusing to rename {qn} to {name}: a Go name starting with a lower-case "
|
|
1013
|
+
"letter is private to its package, and {count} site(s) are in another "
|
|
1014
|
+
"package, where {name} would be undefined; keep the first letter upper-case "
|
|
1015
|
+
"or move those uses into the package first"
|
|
1016
|
+
)
|
|
1010
1017
|
RENAME_WRONG_ROOT = (
|
|
1011
1018
|
"Project {project} was not indexed from this server's repository; "
|
|
1012
1019
|
"rename it from the MCP server rooted at its source tree"
|
|
@@ -1276,6 +1283,81 @@ CONTEXT_TARGET_OVER_BUDGET = (
|
|
|
1276
1283
|
"The first line of {target} does not fit in {budget} tokens, so the slice "
|
|
1277
1284
|
"is empty; raise --budget"
|
|
1278
1285
|
)
|
|
1286
|
+
# move (issue #1534).
|
|
1287
|
+
MOVE_UNKNOWN = "No definition named {qn} in the graph"
|
|
1288
|
+
MOVE_METHOD = "{qn} is a method; move its class instead"
|
|
1289
|
+
MOVE_SAME_MODULE = "{path} already holds the definition"
|
|
1290
|
+
MOVE_NO_GRAMMAR = "No grammar for {path}; the definition cannot be moved"
|
|
1291
|
+
MOVE_NO_DEFINITION_TOKEN = "Could not locate the definition of {qn} in {path}"
|
|
1292
|
+
MOVE_CYCLE = "Refusing to move: it would create the import cycle {cycle}"
|
|
1293
|
+
MOVE_IMPORT_COLLISION = (
|
|
1294
|
+
"{path} already binds {name}; the import the moved definition needs would rebind it"
|
|
1295
|
+
)
|
|
1296
|
+
MOVE_MAYBE_UNBOUND = (
|
|
1297
|
+
"{names} may be unbound in {path}: it is set under a module-level if, "
|
|
1298
|
+
"try or loop that does not bind it on every path, so the moved "
|
|
1299
|
+
"definition cannot import it safely"
|
|
1300
|
+
)
|
|
1301
|
+
MOVE_SPLIT_GLOBAL = (
|
|
1302
|
+
"{names} is a variable of {path} rebound through a global statement; "
|
|
1303
|
+
"the destination would import it as a separate copy, so the moved "
|
|
1304
|
+
"definition and {path} would stop seeing each other's updates"
|
|
1305
|
+
)
|
|
1306
|
+
MOVE_ASSIGNS_IMPORT = (
|
|
1307
|
+
"{names} is a variable of {path} that the moved definition assigns; "
|
|
1308
|
+
"imported into the destination it is a read-only binding, so the "
|
|
1309
|
+
"assignment would throw"
|
|
1310
|
+
)
|
|
1311
|
+
MOVE_WILDCARD_IMPORTER = (
|
|
1312
|
+
"{importers} import(s) everything from {path} with *, and would no "
|
|
1313
|
+
"longer get {name} from it; pass keep_alias to keep {path} exporting it"
|
|
1314
|
+
)
|
|
1315
|
+
MOVE_STAR_PROVIDED = (
|
|
1316
|
+
"{names} reaches {path} only through a star import from {modules}; "
|
|
1317
|
+
"the destination would not bind it, so the moved definition would "
|
|
1318
|
+
"raise NameError; import it by name in {path} first"
|
|
1319
|
+
)
|
|
1320
|
+
MOVE_FUTURE_ANNOTATIONS = (
|
|
1321
|
+
"{enabled} enables from __future__ import annotations and {disabled} "
|
|
1322
|
+
"does not; the move would change how the annotations in {changed} "
|
|
1323
|
+
"evaluate"
|
|
1324
|
+
)
|
|
1325
|
+
MOVE_RELATIVE_IMPORT_ESCAPES = (
|
|
1326
|
+
"{statement} in {qn} climbs above the top-level package of {path}, so "
|
|
1327
|
+
"the move cannot respell it for the destination"
|
|
1328
|
+
)
|
|
1329
|
+
MOVE_READS_OWN_LOCATION = (
|
|
1330
|
+
"{qn} reads {names}, the location of {path}; moved, it would resolve "
|
|
1331
|
+
"against {new_path} instead, so the move would change which files it "
|
|
1332
|
+
"reads"
|
|
1333
|
+
)
|
|
1334
|
+
MOVE_MODULE_NAME_TAKEN = (
|
|
1335
|
+
"{path} calls {name} through its module and already uses the name "
|
|
1336
|
+
"{local}, so the move cannot import the destination under it"
|
|
1337
|
+
)
|
|
1338
|
+
MOVE_PLANNED = "{importers} importer(s) would be rewritten, {unchanged} left unchanged"
|
|
1339
|
+
MOVE_PARSE_FAILED = "Move rolled back: {files} would no longer parse"
|
|
1340
|
+
MOVE_SOURCE_CHANGED = (
|
|
1341
|
+
"Cannot stage the move: {files} changed on disk after the move was "
|
|
1342
|
+
"planned; retry once the tree is settled"
|
|
1343
|
+
)
|
|
1344
|
+
MOVE_CONTRACT_FAILED = "Move rolled back, postcondition failed: {reasons}"
|
|
1345
|
+
MOVE_CONTRACT_UNMEASURED = (
|
|
1346
|
+
"Move applied, but its postcondition could not be measured: {error}"
|
|
1347
|
+
)
|
|
1348
|
+
MOVE_ROLLBACK_UNMEASURED = (
|
|
1349
|
+
"Move rolled back after its postcondition failed ({reasons}), but the "
|
|
1350
|
+
"graph could not be re-ingested afterwards ({error}); rebuild the graph "
|
|
1351
|
+
"before the next graph-backed operation"
|
|
1352
|
+
)
|
|
1353
|
+
MOVE_WRONG_ROOT = (
|
|
1354
|
+
"Project {project} was not indexed from this server's repository; "
|
|
1355
|
+
"move from the MCP server rooted at its source tree"
|
|
1356
|
+
)
|
|
1357
|
+
MOVE_CLI_WRONG_ROOT = (
|
|
1358
|
+
"Project {project} was not indexed from {root}; "
|
|
1359
|
+
"pass the --repo-path it was indexed from"
|
|
1360
|
+
)
|
|
1279
1361
|
# Postcondition contract (issue #1531).
|
|
1280
1362
|
CONTRACT_OP_RENAME = "rename"
|
|
1281
1363
|
CONTRACT_OP_CHANGE_SIGNATURE = "change_signature"
|