code-graph-rag 0.6.62__tar.gz → 0.7.1__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.62/code_graph_rag.egg-info → code_graph_rag-0.7.1}/PKG-INFO +1 -1
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/README.md +2 -5
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1/code_graph_rag.egg-info}/PKG-INFO +1 -1
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_python.py +3 -2
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/graph_updater.py +95 -10
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/logs.py +25 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/import_processor.py +296 -14
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/stack/constants.py +17 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/stack/manager.py +193 -10
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/pyproject.toml +3 -3
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/LICENSE +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/PYPI_README.md +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/cgr/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/code_graph_rag.egg-info/SOURCES.txt +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/code_graph_rag.egg-info/dependency_links.txt +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/code_graph_rag.egg-info/entry_points.txt +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/code_graph_rag.egg-info/requires.txt +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/code_graph_rag.egg-info/top_level.txt +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/_cli_env.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_analyzer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/c.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/cpp.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/csharp.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/dart.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/go.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/java.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/javascript.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/lua.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/php.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/python.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/ruby.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/rust.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/scala.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/tsx.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/patterns/typescript.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/c.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/cpp.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/csharp.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/dart.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/go.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/java.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/javascript.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/lua.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/php.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/python.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/ruby.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/rust.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/scala.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/tsx.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/security/typescript.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/c.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/cpp.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/csharp.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/dart.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/go.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/java.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/javascript.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/lua.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/php.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/python.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/ruby.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/rust.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/scala.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/tsx.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/analyzers/ast_grep_rules/smells/typescript.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/ast_cache.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/capture.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/check_isolation.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/checkout_state.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/cli_help.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/cli_runtime.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/config.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/console_marks.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_cpp.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_csharp.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_dart.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_go.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_java.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_js.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_julia.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_lua.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_nodes.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_php.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_rust.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_scala.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/ast_sql.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/build.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/core.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/deadcode_roots.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/deps.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/duplicates.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/embedded_graph.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/fqn_specs.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/graph.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/health.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/interface.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/lang_tooling.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/languages.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/mcp.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/notebook.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/port.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/providers.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/security.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/sqlite_vectors.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/stdlib_types.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/structural.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/constants/trace.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/context_pruning.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/context_slice.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/crash_correlation.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/cypher_queries.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/dead_code.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/decorators.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/dispatch_dependents.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/docker-compose.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/duplicates.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/contract.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/import_paths.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/imports.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/move.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/occurrences.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/patcher.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/rename.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/signature.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/signature_bind.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/signature_contract.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/signature_js.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/signature_js_bind.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/signature_spec.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/sites.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editing/transaction.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/editor_links.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/compiler.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/connection.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/cypher_ast.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/executor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/expressions.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/extension.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/functions.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/lexer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/limits.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/native.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/parser.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/procedures.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/sql.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/store.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedded_graph/types.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/embedder.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/exceptions.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/flow_verdict.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/function_registry.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/gloss.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/gloss_anchor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/gloss_repair.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/graph_audit.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/graph_cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/graph_dialects.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/graph_loader.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/graph_query.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/instructions_trust.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/interface_skip.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/language_spec.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/main.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/mcp/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/mcp/client.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/mcp/server.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/mcp/tools.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/mgclient_compat.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/mgclient_probe.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/models.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parser_fingerprint.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parser_loader.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/anchor_hash.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_fingerprint.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/bash.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/elixir.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/haskell.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/kotlin.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/nix.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/ruby.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/solidity.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_patterns/swift.yaml +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_scope.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/ast_grep_tier.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/build_lock.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/call_processor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/call_resolver.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/base_targets.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/cpp_modules.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/identity.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/method_override.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/mixin.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/node_type.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/parent_extraction.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/relationships.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/class_ingest/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/contract_linking.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/contracts.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/class_macro.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/function_values.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/local_types.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/overloads.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/preproc_recovery.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/trailing_annotation.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp_frontend/constants.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/cpp_frontend/qn.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp/arity.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.cs +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.csproj +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/csharp_frontend/roslyn/Program.cs +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/dart/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/dart/package_paths.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/dart/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/dart/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/definition_docstring.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/definition_processor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/dependency_parser.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/dispatch_registry.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/document_tier.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/endpoint_prefixes.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/endpoint_routes.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/endpoints.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/enum_variants.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/export_detection.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/factory.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/field_nodes.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/flat_module.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/flow_access/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/flow_access/constants.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/flow_access/processor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontend_mode.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/cpp.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/csharp.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/go.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/java.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/protocol.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/python.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/frontends/registry.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/function_ingest.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/builds.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/interface_ingest.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/interfaces.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/link_state.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/module_paths.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go_frontend/gotypes/go.mod +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go_frontend/gotypes/go.sum +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/go_frontend/gotypes/main.go +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/base.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/cpp.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/java.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/js_ts.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/julia.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/lua.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/php.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/protocol.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/python.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/registry.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/handlers/rust.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/interface_fingerprint.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/constants.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/descriptor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/extract.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/models.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/processor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/registry.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/resource_names.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/io_access/url_folding.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java/method_resolver.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java/type_resolver.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java/variable_analyzer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java_frontend/javac/cgr/Frontend.java +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java_generated.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/java_lombok.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/commonjs_exports.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/ingest.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/module_paths.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/module_system.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/overloads.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/reexports.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/js_ts/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/julia/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/julia/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/lua/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/lua/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/lua/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/module_docstring.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/native_trees.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/notebook.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/parameter_nodes.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/php/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/php/class_names.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/php/namespaces.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/php/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/positional_params.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/ast_analyzer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/class_aliases.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/definition_index.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/expression_analyzer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/flow_bindings.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/forward_refs.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/overloads.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/patterns.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/receiver_rebinding.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/variable_analyzer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py/with_analyzer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py_frontend/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/py_frontend/frontend.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/python_source_roots.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/rpc_exposure.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/rs/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/rs/cargo_semver.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/rs/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/rs/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/scala/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/scala/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/semantic_call_join.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/sql_ddl.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/sql_recovery.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/stdlib_extractor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/string_call.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/structure_processor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/type_facts.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/type_inference.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/parsers/utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/path_filters.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/port_cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/port_parity.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/project_selection.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/prompts.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/providers/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/providers/base.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/providers/litellm.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/c_sharp.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/dart.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/java.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/javascript.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/julia.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/php.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/python.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/rust.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/queries/highlights/typescript.scm +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/readme_sections.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/schema_builder.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/schema_parse.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/schemas.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/sensitive_paths.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/anthropic_token_counter.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/cypher_guard.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/filtering.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/gloss_cleanup.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/graph_diff.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/graph_service.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/llm.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/neo4j_driver.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/protobuf_service.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/provenance.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/resource_cleanup.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/services/usage_cost.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/source_checkout.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/sql_names.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/sqlite_vectors.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/stack/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/stack/cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/stack/health.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/structural_check.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/structural_delta.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/sync_guard.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/sync_lock.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/taint.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tool_errors.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/ast_grep_service.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/code_retrieval.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/codebase_query.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/directory_lister.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/duplicate_detection.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/file_editor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/file_reader.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/file_writer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/graph_refresh.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/graph_rerank.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/health_checker.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/language.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/language_catalog.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/research.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/semantic_search.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/shell_command.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/structural_editor.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/structural_search.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/tool_descriptions.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tools/web_search.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/carry.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/cpuprofile.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/dispatch_site.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/ebpf_pprof.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/ingest.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/instrumented.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/pprof.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/pytest_plugin.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/records.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/resolution.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/rust_pprof.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/sourcemap.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/speedscope.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/tracer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/trace/xdebug.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/tree_sitter_point.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/types_defs.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/unixcoder.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/cpp_signatures.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/dependencies.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/endpoints.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/fqn_resolver.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/interruptible_thread.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/json_io.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/path_utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/process_owner.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/qn_markers.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/rich_markdown.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/safe_xml.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/source_encoding.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/source_extraction.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/terminal_console.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/token_utils.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/utils/toml_writer.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/vector_store.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/watch.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/workspaces/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/workspaces/cli.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/workspaces/constants.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/workspaces/models.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codebase_rag/workspaces/storage.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codec/__init__.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codec/schema.proto +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codec/schema_pb2.py +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/codec/schema_pb2.pyi +0 -0
- {code_graph_rag-0.6.62 → code_graph_rag-0.7.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.1
|
|
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
|
|
@@ -61,11 +61,8 @@ 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
|
-
- **Python Property Access**: Scoped Python property reads to their respective receivers.
|
|
67
|
-
- **Cross-Language Imports**: Rejected cross-language internal import targets to improve clarity.
|
|
68
|
-
- **Constructor Initialisation**: Correctly handled attribute field initializers in TS/JS, Java and C# constructors.
|
|
64
|
+
- **Security Fix**: Addressed a potential issue with parameter defaults.
|
|
65
|
+
- **Stack Handling**: Improved stack management for Qdrant and Memgraph.
|
|
69
66
|
<!-- /SECTION:latest_news -->
|
|
70
67
|
|
|
71
68
|
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.
|
|
3
|
+
Version: 0.7.1
|
|
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
|
|
@@ -505,11 +505,12 @@ JAVA_MAX_INFERENCE_DEPTH = 64
|
|
|
505
505
|
PY_DUNDER_ALL_BLOCK_PATTERN = r"__all__\s*(?::[^=]+)?=\s*[\[(]([^\])]*)[\])]"
|
|
506
506
|
PY_DUNDER_ALL_ENTRY_PATTERN = r"""(['"])(?P<name>[A-Za-z_]\w*)\1"""
|
|
507
507
|
# The module attribute `from module import *` reads, its two list methods a
|
|
508
|
-
# module may grow it with,
|
|
509
|
-
# import of a module without one.
|
|
508
|
+
# module may grow it with, the builtin whose call makes a fresh list, and the
|
|
509
|
+
# prefix that keeps a name out of a wildcard import of a module without one.
|
|
510
510
|
PY_DUNDER_ALL = "__all__"
|
|
511
511
|
PY_LIST_EXTEND = "extend"
|
|
512
512
|
PY_LIST_APPEND = "append"
|
|
513
|
+
PY_BUILTIN_LIST = "list"
|
|
513
514
|
PY_PRIVATE_PREFIX = "_"
|
|
514
515
|
|
|
515
516
|
# Forward references in an annotation (`n: "Node"`, issue #2837): the quotes
|
|
@@ -400,6 +400,20 @@ def _hash_file_with_bytes(filepath: Path) -> tuple[str, bytes] | None:
|
|
|
400
400
|
return hashlib.md5(data, usedforsecurity=False).hexdigest(), data
|
|
401
401
|
|
|
402
402
|
|
|
403
|
+
def _unconfirmed(hashes: FileHashCache) -> FileHashCache:
|
|
404
|
+
"""Every file `hashes` records, none of them as current.
|
|
405
|
+
|
|
406
|
+
For a skipped EXPOSES cleanup that neither its marker nor a dropped
|
|
407
|
+
directory-mtime map could owe. The unreadable mark is used for what it
|
|
408
|
+
does, not what it says: it is not a digest, so the next pass re-hashes
|
|
409
|
+
each file whatever its mtime and re-parses it as a known one (#1983),
|
|
410
|
+
and that run's endpoint passes retry the cleanup. Every path stays
|
|
411
|
+
listed, so the watcher still finds the files under a deleted directory
|
|
412
|
+
and a single-file run still finds its project root (Greptile, PR #3625).
|
|
413
|
+
"""
|
|
414
|
+
return dict.fromkeys(hashes, cs.HASH_CACHE_UNREADABLE)
|
|
415
|
+
|
|
416
|
+
|
|
403
417
|
def _load_hash_cache(cache_path: Path) -> FileHashCache:
|
|
404
418
|
if not cache_path.is_file():
|
|
405
419
|
return {}
|
|
@@ -1903,6 +1917,12 @@ class GraphUpdater:
|
|
|
1903
1917
|
# which cannot tell a nested project's rows from this one's.
|
|
1904
1918
|
self._registry_unread = False
|
|
1905
1919
|
self._exposes_cleanup_skipped = False
|
|
1920
|
+
# A skipped cleanup whose marker could not be written: this run then
|
|
1921
|
+
# leaves no directory-mtime map, which keeps the next run off the
|
|
1922
|
+
# in-sync path just as the marker would. When the old map could not
|
|
1923
|
+
# be dropped either, the hash cache records every file unconfirmed.
|
|
1924
|
+
self._exposes_cleanup_unrecorded = False
|
|
1925
|
+
self._exposes_map_kept = False
|
|
1906
1926
|
self._prune_settled = False
|
|
1907
1927
|
|
|
1908
1928
|
self.factory = ProcessorFactory(
|
|
@@ -3037,6 +3057,8 @@ class GraphUpdater:
|
|
|
3037
3057
|
self._registered_projects = None
|
|
3038
3058
|
self._registry_unread = False
|
|
3039
3059
|
self._exposes_cleanup_skipped = False
|
|
3060
|
+
self._exposes_cleanup_unrecorded = False
|
|
3061
|
+
self._exposes_map_kept = False
|
|
3040
3062
|
self._prune_settled = False
|
|
3041
3063
|
if not force and self._single_file is None:
|
|
3042
3064
|
self._drop_cache_if_graph_lost(previous_root)
|
|
@@ -3415,12 +3437,23 @@ class GraphUpdater:
|
|
|
3415
3437
|
# are keyed against the same root every other run uses.
|
|
3416
3438
|
if self._single_file is not None and not cache_path.is_file():
|
|
3417
3439
|
logger.info(ls.HASH_CACHE_SKIPPED_SINGLE_FILE, path=cache_path)
|
|
3440
|
+
elif self._exposes_map_kept:
|
|
3441
|
+
# Neither the marker nor a dropped map owes the cleanup, so
|
|
3442
|
+
# the cache does: every file unconfirmed, none left out.
|
|
3443
|
+
hash_cache_published = _publish_hash_cache(
|
|
3444
|
+
cache_path, _unconfirmed(new_hashes), observed_at
|
|
3445
|
+
)
|
|
3418
3446
|
else:
|
|
3419
3447
|
hash_cache_published = _publish_hash_cache(
|
|
3420
3448
|
cache_path, new_hashes, observed_at
|
|
3421
3449
|
)
|
|
3422
3450
|
self._pending_hash_cache = None
|
|
3423
|
-
|
|
3451
|
+
# The missing map is what owes an unrecorded EXPOSES cleanup.
|
|
3452
|
+
if (
|
|
3453
|
+
self._pending_dir_mtimes is not None
|
|
3454
|
+
and hash_cache_published
|
|
3455
|
+
and not self._exposes_cleanup_unrecorded
|
|
3456
|
+
):
|
|
3424
3457
|
_save_dir_mtimes(*self._pending_dir_mtimes)
|
|
3425
3458
|
self._pending_dir_mtimes = None
|
|
3426
3459
|
self._pending_cache_observed_at = None
|
|
@@ -3611,15 +3644,55 @@ class GraphUpdater:
|
|
|
3611
3644
|
skipped one leaves the marker for the next (issue #2193).
|
|
3612
3645
|
"""
|
|
3613
3646
|
marker = self.state_dir / cs.EXPOSES_CLEANUP_PENDING_FILENAME
|
|
3614
|
-
|
|
3615
|
-
|
|
3647
|
+
if self._exposes_cleanup_skipped:
|
|
3648
|
+
try:
|
|
3616
3649
|
marker.touch()
|
|
3617
|
-
|
|
3618
|
-
marker
|
|
3650
|
+
except OSError as e:
|
|
3651
|
+
# A marker an earlier run left still owes the cleanup, even
|
|
3652
|
+
# when its mtime cannot be refreshed: only a missing one needs
|
|
3653
|
+
# the fallback, which costs the next run a full re-parse.
|
|
3654
|
+
if not marker.exists():
|
|
3655
|
+
self._owe_exposes_cleanup_without_marker(marker, e)
|
|
3656
|
+
return
|
|
3657
|
+
# Only a run that could delete settles the debt. With EXPOSES capture
|
|
3658
|
+
# off both passes return before their cleanups, and a sink that cannot
|
|
3659
|
+
# query deletes nothing; settling there would let the next run take
|
|
3660
|
+
# the in-sync path past edges nobody removed.
|
|
3661
|
+
if not (cleared_by_this_run and self._can_clean_exposes()):
|
|
3662
|
+
return
|
|
3663
|
+
try:
|
|
3664
|
+
marker.unlink(missing_ok=True)
|
|
3619
3665
|
except OSError:
|
|
3620
|
-
#
|
|
3621
|
-
|
|
3622
|
-
|
|
3666
|
+
# A marker left in place only costs the next run a rescan.
|
|
3667
|
+
logger.debug(ls.EXPOSES_CLEANUP_MARKER_NOT_UPDATED)
|
|
3668
|
+
|
|
3669
|
+
def _can_clean_exposes(self) -> bool:
|
|
3670
|
+
return self.capture.rel_enabled(cs.RelationshipType.EXPOSES) and isinstance(
|
|
3671
|
+
self.ingestor, QueryProtocol
|
|
3672
|
+
)
|
|
3673
|
+
|
|
3674
|
+
def _owe_exposes_cleanup_without_marker(self, marker: Path, error: OSError) -> None:
|
|
3675
|
+
"""Keep a skipped cleanup owed when its marker cannot be written.
|
|
3676
|
+
|
|
3677
|
+
A run with no directory-mtime map cannot take the in-sync path, and
|
|
3678
|
+
nothing but that check reads the map, so dropping it costs the next
|
|
3679
|
+
run its shortcut and nothing else: it hashes as usual and its
|
|
3680
|
+
endpoint passes cover every module. The hash cache stays, because a
|
|
3681
|
+
single-file run finds its project root by it (Greptile, PR #3625).
|
|
3682
|
+
Dropped now rather than at the commit, so a run that stops before
|
|
3683
|
+
committing cannot leave the old map trusted either; the commit then
|
|
3684
|
+
writes none (`_commit_run_state`).
|
|
3685
|
+
"""
|
|
3686
|
+
self._exposes_cleanup_unrecorded = True
|
|
3687
|
+
logger.warning(ls.EXPOSES_CLEANUP_NOT_RECORDED.format(path=marker, error=error))
|
|
3688
|
+
snapshot = self.state_dir / cs.DIR_MTIMES_FILENAME
|
|
3689
|
+
try:
|
|
3690
|
+
snapshot.unlink(missing_ok=True)
|
|
3691
|
+
except OSError as e:
|
|
3692
|
+
self._exposes_map_kept = True
|
|
3693
|
+
logger.warning(
|
|
3694
|
+
ls.EXPOSES_CLEANUP_SNAPSHOT_KEPT.format(path=snapshot, error=e)
|
|
3695
|
+
)
|
|
3623
3696
|
|
|
3624
3697
|
def _emit_route_call_endpoints(self, only: set[str] | None = None) -> None:
|
|
3625
3698
|
if not self.capture.rel_enabled(cs.RelationshipType.EXPOSES):
|
|
@@ -7572,8 +7645,15 @@ class GraphUpdater:
|
|
|
7572
7645
|
return True
|
|
7573
7646
|
# A skipped EXPOSES cleanup is owed: nothing on disk changed, so no
|
|
7574
7647
|
# hash below would send the run into the endpoint passes that owe it
|
|
7575
|
-
# (issue #2193).
|
|
7576
|
-
|
|
7648
|
+
# (issue #2193). Only a run that can do the cleanup is sent: with
|
|
7649
|
+
# EXPOSES capture off, or a sink that cannot query, it would delete
|
|
7650
|
+
# nothing and settle nothing, so every run would rescan for it.
|
|
7651
|
+
# Turning capture back on changes the parser fingerprint, and that run
|
|
7652
|
+
# re-parses and pays the debt.
|
|
7653
|
+
if (
|
|
7654
|
+
self._can_clean_exposes()
|
|
7655
|
+
and (self.state_dir / cs.EXPOSES_CLEANUP_PENDING_FILENAME).exists()
|
|
7656
|
+
):
|
|
7577
7657
|
return True
|
|
7578
7658
|
if (self.state_dir / cs.PRUNE_PENDING_FILENAME).exists():
|
|
7579
7659
|
return True
|
|
@@ -9925,6 +10005,9 @@ class GraphUpdater:
|
|
|
9925
10005
|
hashes[key] = hashlib.md5(data, usedforsecurity=False).hexdigest()
|
|
9926
10006
|
for key in gone:
|
|
9927
10007
|
hashes.pop(key, None)
|
|
10008
|
+
if self._exposes_map_kept:
|
|
10009
|
+
# As at the batch commit: the cache owes the skipped cleanup.
|
|
10010
|
+
hashes = _unconfirmed(hashes)
|
|
9928
10011
|
_save_hash_cache(cache_path, hashes)
|
|
9929
10012
|
# The cache's mtime is the instant every file NOT in it was last
|
|
9930
10013
|
# judged (`_is_already_in_sync` and the walk skip files no newer
|
|
@@ -10040,6 +10123,8 @@ class GraphUpdater:
|
|
|
10040
10123
|
self._registered_projects = None
|
|
10041
10124
|
self._registry_unread = False
|
|
10042
10125
|
self._exposes_cleanup_skipped = False
|
|
10126
|
+
self._exposes_cleanup_unrecorded = False
|
|
10127
|
+
self._exposes_map_kept = False
|
|
10043
10128
|
self._prune_settled = False
|
|
10044
10129
|
# Per call: a caller holding this updater across many events must see
|
|
10045
10130
|
# THIS call's answer, not the last one's.
|
|
@@ -314,6 +314,18 @@ QDRANT_BUNDLED_NOT_RUNNING = (
|
|
|
314
314
|
"embedded store at '{path}'. Run 'cgr daemon up' to store them in the "
|
|
315
315
|
"stack's Qdrant"
|
|
316
316
|
)
|
|
317
|
+
QDRANT_BUNDLED_OTHER_MEMGRAPH = (
|
|
318
|
+
"The cgr stack's Qdrant at {url} holds the embeddings of the stack's own "
|
|
319
|
+
"Memgraph, and the Memgraph in use, {memgraph}, is not it, so embeddings "
|
|
320
|
+
"stay in the embedded store at '{path}'. Set QDRANT_URL={url} to share the "
|
|
321
|
+
"stack's Qdrant on purpose"
|
|
322
|
+
)
|
|
323
|
+
QDRANT_BUNDLED_OTHER_GRAPH = (
|
|
324
|
+
"The cgr stack's Qdrant holds the embeddings of the stack's own Memgraph, "
|
|
325
|
+
"and the graph in use is not in Memgraph (GRAPH_BACKEND={backend}), so "
|
|
326
|
+
"embeddings stay in the embedded store at '{path}'. Set QDRANT_URL to the "
|
|
327
|
+
"stack's Qdrant to share it on purpose"
|
|
328
|
+
)
|
|
317
329
|
QDRANT_BUNDLED_UNVERIFIED = (
|
|
318
330
|
"Could not confirm through Docker Compose that the cgr stack's Qdrant is "
|
|
319
331
|
"running ({detail}), so embeddings stay in the embedded store at '{path}'"
|
|
@@ -1475,6 +1487,19 @@ PRUNE_SKIPPED_REGISTRY_UNREAD = (
|
|
|
1475
1487
|
"run prunes them."
|
|
1476
1488
|
)
|
|
1477
1489
|
PRUNE_PENDING_NOT_UPDATED = "Orphan-prune pending marker not updated"
|
|
1490
|
+
EXPOSES_CLEANUP_MARKER_NOT_UPDATED = "EXPOSES cleanup marker not updated"
|
|
1491
|
+
EXPOSES_CLEANUP_NOT_RECORDED = (
|
|
1492
|
+
"Could not record a skipped EXPOSES cleanup in {path} ({error}). This run "
|
|
1493
|
+
"keeps no directory-mtime map instead, so the next run cannot treat the "
|
|
1494
|
+
"project as in sync and retries the cleanup."
|
|
1495
|
+
)
|
|
1496
|
+
EXPOSES_CLEANUP_SNAPSHOT_KEPT = (
|
|
1497
|
+
"Could not remove {path} ({error}). The hash cache marks every file "
|
|
1498
|
+
"unconfirmed instead, so the next run re-parses the project and retries "
|
|
1499
|
+
"the cleanup. If the cache cannot be written either, that run may treat "
|
|
1500
|
+
"the project as in sync: delete the file by hand, or re-run once the path "
|
|
1501
|
+
"is writable."
|
|
1502
|
+
)
|
|
1478
1503
|
PRUNE_QUERY_FAILED = "Could not read {label} paths from the graph; skipping its prune."
|
|
1479
1504
|
PRUNE_FOUND = "Found {count} orphan {label} nodes to remove"
|
|
1480
1505
|
PRUNE_DELETING = "Pruning orphan {label}: {path}"
|
|
@@ -1283,8 +1283,7 @@ def _python_dunder_all_part(statement: Node) -> list[str] | None:
|
|
|
1283
1283
|
if expression is None:
|
|
1284
1284
|
return None
|
|
1285
1285
|
if expression.type in (cs.TS_PY_ASSIGNMENT, cs.TS_PY_AUGMENTED_ASSIGNMENT):
|
|
1286
|
-
|
|
1287
|
-
if left is None or left.text != cs.PY_DUNDER_ALL.encode():
|
|
1286
|
+
if not _is_dunder_all_target(expression):
|
|
1288
1287
|
return None
|
|
1289
1288
|
return _readable(
|
|
1290
1289
|
_python_literal_names(expression.child_by_field_name(cs.TS_FIELD_RIGHT))
|
|
@@ -1324,6 +1323,11 @@ class _LateDunderAll(_UnreadableDunderAll):
|
|
|
1324
1323
|
later statement, so no later literal settles what it holds."""
|
|
1325
1324
|
|
|
1326
1325
|
|
|
1326
|
+
def _is_dunder_all_target(assignment: Node) -> bool:
|
|
1327
|
+
left = assignment.child_by_field_name(cs.TS_FIELD_LEFT)
|
|
1328
|
+
return left is not None and left.text == cs.PY_DUNDER_ALL.encode()
|
|
1329
|
+
|
|
1330
|
+
|
|
1327
1331
|
def _readable(names: list[str] | None) -> list[str]:
|
|
1328
1332
|
if names is None:
|
|
1329
1333
|
raise _UnreadableDunderAll
|
|
@@ -1422,11 +1426,20 @@ def _python_binding_use(node: Node, child: Node) -> _NameUse:
|
|
|
1422
1426
|
def _python_name_scope(node: Node, walrus: bool = False) -> Node:
|
|
1423
1427
|
"""The def, class body, lambda or comprehension whose names `node` is
|
|
1424
1428
|
one of, else the module. A def's or class's own name, decorators and
|
|
1425
|
-
bases are the enclosing scope's,
|
|
1426
|
-
|
|
1429
|
+
bases are the enclosing scope's, as is a parameter default, which runs
|
|
1430
|
+
when the def or lambda is defined; a walrus target is the scope's around
|
|
1431
|
+
its comprehension, as Python binds them."""
|
|
1427
1432
|
child, current = node, node.parent
|
|
1433
|
+
in_default = False
|
|
1428
1434
|
while current is not None and current.parent is not None:
|
|
1429
|
-
if (
|
|
1435
|
+
if current.type in cs.PY_NAMED_PARAMETER_TYPES and _is_field(
|
|
1436
|
+
current, cs.FIELD_VALUE, child
|
|
1437
|
+
):
|
|
1438
|
+
in_default = True
|
|
1439
|
+
elif in_default and current.type in cs.PY_CALLABLE_CLOSURE_TYPES:
|
|
1440
|
+
# The def or lambda that owns the default is passed over.
|
|
1441
|
+
in_default = False
|
|
1442
|
+
elif (
|
|
1430
1443
|
current.type == cs.TS_PY_LAMBDA
|
|
1431
1444
|
or (current.type in cs.PY_COMPREHENSION_TYPES and not walrus)
|
|
1432
1445
|
or (
|
|
@@ -1466,9 +1479,8 @@ def _runs_later(node: Node, statement: Node) -> bool:
|
|
|
1466
1479
|
runs whenever it is called rather than where it is written."""
|
|
1467
1480
|
child, current = node, node.parent
|
|
1468
1481
|
while current is not None and child.id != statement.id:
|
|
1469
|
-
if current.type
|
|
1470
|
-
current
|
|
1471
|
-
and _is_field(current, cs.FIELD_BODY, child)
|
|
1482
|
+
if current.type in cs.PY_CALLABLE_CLOSURE_TYPES and _is_field(
|
|
1483
|
+
current, cs.FIELD_BODY, child
|
|
1472
1484
|
):
|
|
1473
1485
|
return True
|
|
1474
1486
|
child, current = current, current.parent
|
|
@@ -1478,13 +1490,20 @@ def _runs_later(node: Node, statement: Node) -> bool:
|
|
|
1478
1490
|
def _python_dunder_all_names(statement: Node) -> Iterator[Node]:
|
|
1479
1491
|
"""Each `__all__` name the statement holds, at any depth; another
|
|
1480
1492
|
object's `__all__` (`ns.__all__ = ...`) is not one."""
|
|
1481
|
-
|
|
1493
|
+
return _python_names(statement, cs.PY_DUNDER_ALL)
|
|
1494
|
+
|
|
1495
|
+
|
|
1496
|
+
def _python_names(statement: Node, name: str) -> Iterator[Node]:
|
|
1497
|
+
"""Each occurrence of the bare name `name` the statement holds, at any
|
|
1498
|
+
depth; an attribute of that name (`ns.name`) is not one."""
|
|
1499
|
+
text = name.encode()
|
|
1500
|
+
if statement.text is None or text not in statement.text:
|
|
1482
1501
|
return
|
|
1483
1502
|
stack = [statement]
|
|
1484
1503
|
while stack:
|
|
1485
1504
|
node = stack.pop()
|
|
1486
1505
|
stack.extend(node.children)
|
|
1487
|
-
if node.type != cs.TS_PY_IDENTIFIER or node.text !=
|
|
1506
|
+
if node.type != cs.TS_PY_IDENTIFIER or node.text != text:
|
|
1488
1507
|
continue
|
|
1489
1508
|
owner = node.parent
|
|
1490
1509
|
if owner is None or not _is_field(owner, cs.TS_PY_FIELD_ATTRIBUTE, node):
|
|
@@ -1506,8 +1525,204 @@ def _python_dunder_all_writes(statement: Node) -> Iterator[Node]:
|
|
|
1506
1525
|
uses.setdefault(scope.id, set()).add(use)
|
|
1507
1526
|
found.append((name, use, scope))
|
|
1508
1527
|
for name, use, scope in found:
|
|
1509
|
-
if use in (_NameUse.BIND, _NameUse.MUTATE)
|
|
1528
|
+
if use not in (_NameUse.BIND, _NameUse.MUTATE):
|
|
1529
|
+
continue
|
|
1530
|
+
if _python_module_owns(scope, uses):
|
|
1510
1531
|
yield name
|
|
1532
|
+
continue
|
|
1533
|
+
# A class body reads a name from the scopes around it until it binds
|
|
1534
|
+
# it, so a mutation there can change the module's list before the
|
|
1535
|
+
# class's own `__all__` exists (CodeRabbit, PR #3624). One after a
|
|
1536
|
+
# plain class-body assignment of `__all__` changes the class's list;
|
|
1537
|
+
# one inside that assignment's value runs before the target binds,
|
|
1538
|
+
# and a `del` of it between them sends the lookup back out.
|
|
1539
|
+
seen = uses.get(scope.id, set())
|
|
1540
|
+
if (
|
|
1541
|
+
use is _NameUse.MUTATE
|
|
1542
|
+
and scope.type == cs.TS_PY_CLASS_DEFINITION
|
|
1543
|
+
and _NameUse.BIND in seen
|
|
1544
|
+
and _NameUse.GLOBAL not in seen
|
|
1545
|
+
and _python_module_owns(_python_name_scope(scope), uses)
|
|
1546
|
+
and not any(
|
|
1547
|
+
bound_scope.id == scope.id
|
|
1548
|
+
and _python_class_assigns(bound, scope)
|
|
1549
|
+
and _python_statement_end(bound) <= name.start_byte
|
|
1550
|
+
and not any(
|
|
1551
|
+
gone_scope.id == scope.id
|
|
1552
|
+
and _python_deletes(gone)
|
|
1553
|
+
and not _python_never_runs(gone, scope)
|
|
1554
|
+
and _python_statement_end(bound) <= gone.start_byte
|
|
1555
|
+
and gone.start_byte < name.start_byte
|
|
1556
|
+
for gone, _, gone_scope in found
|
|
1557
|
+
)
|
|
1558
|
+
for bound, bound_use, bound_scope in found
|
|
1559
|
+
if bound_use is _NameUse.BIND
|
|
1560
|
+
)
|
|
1561
|
+
):
|
|
1562
|
+
yield name
|
|
1563
|
+
|
|
1564
|
+
|
|
1565
|
+
def _python_deletes(name: Node) -> bool:
|
|
1566
|
+
"""Whether `name` is a target of a `del`, which unbinds it so a later
|
|
1567
|
+
read looks it up in the scopes around (CodeRabbit, PR #3624)."""
|
|
1568
|
+
current = name.parent
|
|
1569
|
+
while current is not None and current.type in _PY_TARGET_SHAPES:
|
|
1570
|
+
current = current.parent
|
|
1571
|
+
return current is not None and current.type == cs.TS_PY_DELETE_STATEMENT
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
def _python_never_runs(node: Node, scope: Node) -> bool:
|
|
1575
|
+
"""Whether `node` sits, inside `scope`, in the body of an `if` whose
|
|
1576
|
+
condition is a literal false constant (`if False:` or `if 0:`), so it
|
|
1577
|
+
cannot run. Any other condition may hold (Greptile, PR #3624)."""
|
|
1578
|
+
child, current = node, node.parent
|
|
1579
|
+
while current is not None and current.id != scope.id:
|
|
1580
|
+
if current.type == cs.TS_PY_IF_STATEMENT and _is_field(
|
|
1581
|
+
current, cs.TS_FIELD_CONSEQUENCE, child
|
|
1582
|
+
):
|
|
1583
|
+
condition = current.child_by_field_name(cs.TS_FIELD_CONDITION)
|
|
1584
|
+
if condition is not None and (
|
|
1585
|
+
condition.type == cs.TS_PY_FALSE
|
|
1586
|
+
or (condition.type == cs.TS_PY_INTEGER and condition.text == b"0")
|
|
1587
|
+
):
|
|
1588
|
+
return True
|
|
1589
|
+
child, current = current, current.parent
|
|
1590
|
+
return False
|
|
1591
|
+
|
|
1592
|
+
|
|
1593
|
+
def _python_statement_end(node: Node) -> int:
|
|
1594
|
+
"""Where the statement holding `node` ends, so a use inside an
|
|
1595
|
+
assignment's value counts as running before its target binds
|
|
1596
|
+
(CodeRabbit, PR #3624)."""
|
|
1597
|
+
current = node
|
|
1598
|
+
while current.parent is not None and current.type != cs.TS_PY_EXPRESSION_STATEMENT:
|
|
1599
|
+
current = current.parent
|
|
1600
|
+
return current.end_byte
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
def _python_class_assigns(name: Node, klass: Node) -> bool:
|
|
1604
|
+
"""Whether `name` is the target of a plain assignment that is a
|
|
1605
|
+
statement of `klass`'s body, so it binds a fresh class-local value each
|
|
1606
|
+
time the body runs (`__all__ = []` or `x = __all__ = []`). An augmented
|
|
1607
|
+
assignment or one in a block or expression may not rebind it first, and
|
|
1608
|
+
one whose value is not a new list (`__all__ = __all__`) may still hold
|
|
1609
|
+
the module's (CodeRabbit, PR #3624)."""
|
|
1610
|
+
child, current = name, name.parent
|
|
1611
|
+
if (
|
|
1612
|
+
current is None
|
|
1613
|
+
or current.type != cs.TS_PY_ASSIGNMENT
|
|
1614
|
+
or not _is_field(current, cs.FIELD_LEFT, child)
|
|
1615
|
+
):
|
|
1616
|
+
return False
|
|
1617
|
+
value = current.child_by_field_name(cs.FIELD_RIGHT)
|
|
1618
|
+
while value is not None and value.type == cs.TS_PY_ASSIGNMENT:
|
|
1619
|
+
value = value.child_by_field_name(cs.FIELD_RIGHT)
|
|
1620
|
+
if value is None or not _python_fresh_list(value):
|
|
1621
|
+
return False
|
|
1622
|
+
while current is not None and current.type == cs.TS_PY_ASSIGNMENT:
|
|
1623
|
+
child, current = current, current.parent
|
|
1624
|
+
if (
|
|
1625
|
+
current is not None
|
|
1626
|
+
and current.type == cs.TS_PY_ASSIGNMENT
|
|
1627
|
+
and not _is_field(current, cs.FIELD_RIGHT, child)
|
|
1628
|
+
):
|
|
1629
|
+
return False
|
|
1630
|
+
if current is None or current.type != cs.TS_PY_EXPRESSION_STATEMENT:
|
|
1631
|
+
return False
|
|
1632
|
+
block = current.parent
|
|
1633
|
+
return (
|
|
1634
|
+
block is not None
|
|
1635
|
+
and block.type == cs.TS_PY_BLOCK
|
|
1636
|
+
and _is_field(klass, cs.FIELD_BODY, block)
|
|
1637
|
+
)
|
|
1638
|
+
|
|
1639
|
+
|
|
1640
|
+
def _python_fresh_list(value: Node) -> bool:
|
|
1641
|
+
"""Whether `value` builds a new list each time it runs: a list display
|
|
1642
|
+
or comprehension, in parentheses or not (`([])`), or a call of the
|
|
1643
|
+
builtin `list` (Greptile, PR #3624)."""
|
|
1644
|
+
while value.type == cs.TS_PY_PARENTHESIZED_EXPRESSION:
|
|
1645
|
+
inner = next(iter(value.named_children), None)
|
|
1646
|
+
if inner is None:
|
|
1647
|
+
return False
|
|
1648
|
+
value = inner
|
|
1649
|
+
if value.type in (cs.TS_PY_LIST, cs.TS_PY_LIST_COMPREHENSION):
|
|
1650
|
+
return True
|
|
1651
|
+
func = value.child_by_field_name(cs.TS_FIELD_FUNCTION)
|
|
1652
|
+
return (
|
|
1653
|
+
value.type == cs.TS_PY_CALL
|
|
1654
|
+
and func is not None
|
|
1655
|
+
and func.type == cs.TS_PY_IDENTIFIER
|
|
1656
|
+
and func.text == cs.PY_BUILTIN_LIST.encode()
|
|
1657
|
+
and _python_names_builtin(func)
|
|
1658
|
+
)
|
|
1659
|
+
|
|
1660
|
+
|
|
1661
|
+
def _python_names_builtin(name: Node) -> bool:
|
|
1662
|
+
"""Whether the bare name `name` reads the builtin of that name: no scope
|
|
1663
|
+
its lookup passes through binds it or declares it `global`, and no
|
|
1664
|
+
scope rebinds the module's (`list = lambda: __all__` makes `list()` hand
|
|
1665
|
+
back the module's list, Greptile, PR #3624). A binding that can only run
|
|
1666
|
+
after the read does not count."""
|
|
1667
|
+
root = name
|
|
1668
|
+
while root.parent is not None:
|
|
1669
|
+
root = root.parent
|
|
1670
|
+
uses: dict[int, set[_NameUse]] = {}
|
|
1671
|
+
for found in _python_names(root, (name.text or b"").decode()):
|
|
1672
|
+
use = _python_name_use(found)
|
|
1673
|
+
walrus = (
|
|
1674
|
+
found.parent is not None and found.parent.type == cs.TS_PY_NAMED_EXPRESSION
|
|
1675
|
+
)
|
|
1676
|
+
scope = _python_name_scope(found, walrus=walrus and use is _NameUse.BIND)
|
|
1677
|
+
if use is _NameUse.BIND and _python_binds_after(found, name, scope):
|
|
1678
|
+
continue
|
|
1679
|
+
uses.setdefault(scope.id, set()).add(use)
|
|
1680
|
+
if any({_NameUse.GLOBAL, _NameUse.BIND} <= seen for seen in uses.values()):
|
|
1681
|
+
return False
|
|
1682
|
+
scope = _python_name_scope(name)
|
|
1683
|
+
from_inner = False
|
|
1684
|
+
while True:
|
|
1685
|
+
if not (from_inner and scope.type == cs.TS_PY_CLASS_DEFINITION):
|
|
1686
|
+
seen = uses.get(scope.id, set())
|
|
1687
|
+
if _NameUse.BIND in seen or _NameUse.GLOBAL in seen:
|
|
1688
|
+
return False
|
|
1689
|
+
if scope.parent is None:
|
|
1690
|
+
return True
|
|
1691
|
+
from_inner = from_inner or scope.type != cs.TS_PY_CLASS_DEFINITION
|
|
1692
|
+
scope = _python_name_scope(scope)
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
def _python_binds_after(bound: Node, read: Node, scope: Node) -> bool:
|
|
1696
|
+
"""Whether `bound`, a binding in the module or class body `scope`, sits
|
|
1697
|
+
in a later statement of that body than the one holding `read`, which
|
|
1698
|
+
reads the name as its statement runs, so the binding runs only after the
|
|
1699
|
+
read (Greptile, PR #3624). A read in a def or lambda body runs whenever
|
|
1700
|
+
it is called, and a binding in the same statement (a loop) may run
|
|
1701
|
+
before it, so neither counts as after."""
|
|
1702
|
+
if scope.parent is not None and scope.type != cs.TS_PY_CLASS_DEFINITION:
|
|
1703
|
+
return False
|
|
1704
|
+
reading = _python_body_statement(read, scope)
|
|
1705
|
+
binding = _python_body_statement(bound, scope)
|
|
1706
|
+
return (
|
|
1707
|
+
reading is not None
|
|
1708
|
+
and binding is not None
|
|
1709
|
+
and not _runs_later(read, reading)
|
|
1710
|
+
and binding.start_byte >= reading.end_byte
|
|
1711
|
+
)
|
|
1712
|
+
|
|
1713
|
+
|
|
1714
|
+
def _python_body_statement(node: Node, scope: Node) -> Node | None:
|
|
1715
|
+
"""The statement of the module or class body `scope` that holds `node`,
|
|
1716
|
+
or None when `node` is not inside it."""
|
|
1717
|
+
body = scope if scope.parent is None else scope.child_by_field_name(cs.FIELD_BODY)
|
|
1718
|
+
if body is None:
|
|
1719
|
+
return None
|
|
1720
|
+
child, current = node, node.parent
|
|
1721
|
+
while current is not None:
|
|
1722
|
+
if current.id == body.id:
|
|
1723
|
+
return child
|
|
1724
|
+
child, current = current, current.parent
|
|
1725
|
+
return None
|
|
1511
1726
|
|
|
1512
1727
|
|
|
1513
1728
|
def _python_dunder_all_change(statement: Node) -> list[str] | None:
|
|
@@ -1523,9 +1738,75 @@ def _python_dunder_all_change(statement: Node) -> list[str] | None:
|
|
|
1523
1738
|
writes = list(_python_dunder_all_writes(statement))
|
|
1524
1739
|
if any(_runs_later(write, statement) for write in writes):
|
|
1525
1740
|
raise _LateDunderAll
|
|
1526
|
-
if writes:
|
|
1741
|
+
if not writes:
|
|
1742
|
+
return None
|
|
1743
|
+
# `def f(x=__all__.append("A"))` changes the module's list as the def
|
|
1744
|
+
# runs, and only when that def runs as this statement does; any other
|
|
1745
|
+
# change here is one the literals do not spell.
|
|
1746
|
+
names: list[str] = []
|
|
1747
|
+
for write in sorted(writes, key=lambda w: w.start_byte):
|
|
1748
|
+
names += _python_dunder_all_default_part(write, statement)
|
|
1749
|
+
return names
|
|
1750
|
+
|
|
1751
|
+
|
|
1752
|
+
def _python_dunder_all_default_runs(defined: Node, statement: Node) -> bool:
|
|
1753
|
+
"""Whether `defined`, the def or lambda a parameter default belongs to,
|
|
1754
|
+
runs exactly once, unconditionally, as `statement` runs."""
|
|
1755
|
+
if defined.type == cs.TS_PY_FUNCTION_DEFINITION:
|
|
1756
|
+
parent = defined.parent
|
|
1757
|
+
return defined.id == statement.id or (
|
|
1758
|
+
parent is not None
|
|
1759
|
+
and parent.type == cs.TS_PY_DECORATED_DEFINITION
|
|
1760
|
+
and parent.id == statement.id
|
|
1761
|
+
)
|
|
1762
|
+
if defined.type != cs.TS_PY_LAMBDA:
|
|
1763
|
+
return False
|
|
1764
|
+
# `name = lambda x=__all__.append("A"): ...`, the statement's expression.
|
|
1765
|
+
assignment = next(iter(statement.named_children), None)
|
|
1766
|
+
return (
|
|
1767
|
+
statement.type == cs.TS_PY_EXPRESSION_STATEMENT
|
|
1768
|
+
and assignment is not None
|
|
1769
|
+
and assignment.type == cs.TS_PY_ASSIGNMENT
|
|
1770
|
+
and _is_field(assignment, cs.TS_FIELD_RIGHT, defined)
|
|
1771
|
+
)
|
|
1772
|
+
|
|
1773
|
+
|
|
1774
|
+
def _python_dunder_all_default_part(write: Node, statement: Node) -> list[str]:
|
|
1775
|
+
"""What a parameter default that is exactly an `__all__.append("x")` or
|
|
1776
|
+
`__all__.extend([...])` call adds, when its def or lambda runs exactly
|
|
1777
|
+
once as `statement` does; raises _UnreadableDunderAll for any other
|
|
1778
|
+
write of the module's `__all__`."""
|
|
1779
|
+
call = write.parent.parent if write.parent is not None else None
|
|
1780
|
+
if call is None or call.type != cs.TS_PY_CALL:
|
|
1527
1781
|
raise _UnreadableDunderAll
|
|
1528
|
-
|
|
1782
|
+
value = call
|
|
1783
|
+
while (
|
|
1784
|
+
value.parent is not None
|
|
1785
|
+
and value.parent.type == cs.TS_PY_PARENTHESIZED_EXPRESSION
|
|
1786
|
+
):
|
|
1787
|
+
value = value.parent
|
|
1788
|
+
parameter = value.parent
|
|
1789
|
+
if (
|
|
1790
|
+
parameter is None
|
|
1791
|
+
or parameter.type not in cs.PY_NAMED_PARAMETER_TYPES
|
|
1792
|
+
or not _is_field(parameter, cs.FIELD_VALUE, value)
|
|
1793
|
+
):
|
|
1794
|
+
raise _UnreadableDunderAll
|
|
1795
|
+
# A default runs when its def or lambda is defined. The parameter's
|
|
1796
|
+
# parent is the parameters node, and that node's parent is the callable;
|
|
1797
|
+
# it counts only when that callable runs as the statement does. A def in
|
|
1798
|
+
# a branch, class body or another callable's default does not (Greptile
|
|
1799
|
+
# and CodeRabbit, PR #3624).
|
|
1800
|
+
parameters = parameter.parent
|
|
1801
|
+
defined = parameters.parent if parameters is not None else None
|
|
1802
|
+
if (
|
|
1803
|
+
parameters is None
|
|
1804
|
+
or defined is None
|
|
1805
|
+
or parameters.type not in (cs.TS_PY_PARAMETERS, cs.TS_PY_LAMBDA_PARAMETERS)
|
|
1806
|
+
or not _python_dunder_all_default_runs(defined, statement)
|
|
1807
|
+
):
|
|
1808
|
+
raise _UnreadableDunderAll
|
|
1809
|
+
return _readable(_python_dunder_all_call_part(call))
|
|
1529
1810
|
|
|
1530
1811
|
|
|
1531
1812
|
def _python_dunder_all(root: Node) -> frozenset[str] | None:
|
|
@@ -1552,7 +1833,8 @@ def _python_dunder_all(root: Node) -> frozenset[str] | None:
|
|
|
1552
1833
|
defined = True
|
|
1553
1834
|
# A plain assignment replaces what earlier statements listed; only
|
|
1554
1835
|
# `+=`, `.append` and `.extend` add to it (Greptile, PR #2989).
|
|
1555
|
-
|
|
1836
|
+
first = statement.named_children[0]
|
|
1837
|
+
if first.type == cs.TS_PY_ASSIGNMENT and _is_dunder_all_target(first):
|
|
1556
1838
|
names = list(part)
|
|
1557
1839
|
elif names is not None:
|
|
1558
1840
|
names += part
|
|
@@ -96,6 +96,16 @@ WARN_OPEN_SERVICES_LEFT_RUNNING = (
|
|
|
96
96
|
)
|
|
97
97
|
# The running containers of one service, one ID per line.
|
|
98
98
|
COMPOSE_PS_RUNNING_ARGS = ("ps", "--quiet", "--status", "running")
|
|
99
|
+
# The running containers as JSON, with the addresses Docker publishes each
|
|
100
|
+
# port on (`Publishers`): one object per line, or one array on older Compose.
|
|
101
|
+
COMPOSE_PS_RUNNING_JSON_ARGS = ("ps", "--format", "json", "--status", "running")
|
|
102
|
+
COMPOSE_PS_PUBLISHERS_KEY = "Publishers"
|
|
103
|
+
COMPOSE_PS_PUBLISHER_HOST_KEY = "URL"
|
|
104
|
+
COMPOSE_PS_PUBLISHER_TARGET_KEY = "TargetPort"
|
|
105
|
+
COMPOSE_PS_PUBLISHER_PORT_KEY = "PublishedPort"
|
|
106
|
+
COMPOSE_PS_PUBLISHER_PROTOCOL_KEY = "Protocol"
|
|
107
|
+
# Bolt runs over TCP, Docker's default for a port mapping that names none.
|
|
108
|
+
COMPOSE_PS_PUBLISHER_TCP = "tcp"
|
|
99
109
|
# How long a start that did not finish waits for the services it started to
|
|
100
110
|
# answer, so that one still initialising is checked too before it returns.
|
|
101
111
|
STARTED_SERVICES_CHECK_TIMEOUT_S = 15.0
|
|
@@ -158,6 +168,7 @@ COMPOSE_PORT_TARGET_KEY = "target"
|
|
|
158
168
|
COMPOSE_PORT_PUBLISHED_KEY = "published"
|
|
159
169
|
COMPOSE_PORT_HOST_IP_KEY = "host_ip"
|
|
160
170
|
QDRANT_CONTAINER_HTTP_PORT = 6333
|
|
171
|
+
MEMGRAPH_CONTAINER_BOLT_PORT = 7687
|
|
161
172
|
# The port qdrant-client connects to when QDRANT_URL names none.
|
|
162
173
|
QDRANT_CLIENT_DEFAULT_PORT = 6333
|
|
163
174
|
ENV_MEMGRAPH_USER = "MEMGRAPH_USER"
|
|
@@ -195,6 +206,12 @@ QDRANT_ROOT_MAX_BYTES = 65536
|
|
|
195
206
|
# A stopped stack refuses the connection at once; a running one answers well
|
|
196
207
|
# inside this, so the check costs nothing noticeable when the vector store opens.
|
|
197
208
|
BUNDLED_QDRANT_PROBE_TIMEOUT_S = 1.0
|
|
209
|
+
# How long the check of MEMGRAPH_HOST waits on one of its addresses for a
|
|
210
|
+
# server answering there.
|
|
211
|
+
MEMGRAPH_ADDRESS_PROBE_TIMEOUT_S = 1.0
|
|
212
|
+
# The same wait on an address of this machine: long enough for Windows, which
|
|
213
|
+
# retries a refused connection for about two seconds before it reports it.
|
|
214
|
+
MEMGRAPH_LOCAL_ADDRESS_PROBE_TIMEOUT_S = 5.0
|
|
198
215
|
QDRANT_API_KEY_HEADER = "api-key"
|
|
199
216
|
ERR_COMPOSE_AUTH_MISMATCH = (
|
|
200
217
|
"Compose would start {variables} with a value that does not come from "
|