code-graph-rag 0.7.79__tar.gz → 0.7.180__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.7.79/code_graph_rag.egg-info → code_graph_rag-0.7.180}/PKG-INFO +11 -11
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/PYPI_README.md +5 -5
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/README.md +4 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180/code_graph_rag.egg-info}/PKG-INFO +11 -11
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/code_graph_rag.egg-info/SOURCES.txt +17 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/code_graph_rag.egg-info/requires.txt +5 -5
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/ast_cache.py +8 -0
- code_graph_rag-0.7.180/codebase_rag/canonical_graph.py +274 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/cli.py +54 -9
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/cli_help.py +3 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/config.py +71 -6
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/__init__.py +4 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_cpp.py +20 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_js.py +48 -1
- code_graph_rag-0.7.180/codebase_rag/constants/ast_lean.py +205 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_lua.py +2 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_nodes.py +33 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_php.py +37 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_python.py +71 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/cli.py +22 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/core.py +12 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/deps.py +1 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/duplicates.py +18 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/embedded_graph.py +118 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/fqn_specs.py +21 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/graph.py +21 -3
- code_graph_rag-0.7.180/codebase_rag/constants/handoff.py +81 -0
- code_graph_rag-0.7.180/codebase_rag/constants/index_engine.py +64 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/languages.py +80 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/mcp.py +5 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/providers.py +6 -0
- code_graph_rag-0.7.180/codebase_rag/constants/reference_answers.py +94 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/reference_graphs.py +14 -5
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/stdlib_types.py +28 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/trace.py +12 -0
- code_graph_rag-0.7.180/codebase_rag/crate_grammars.py +162 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/cypher_queries.py +67 -9
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/docker-compose.yaml +2 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/rename.py +4 -1
- code_graph_rag-0.7.180/codebase_rag/engine_frame.py +1537 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/exceptions.py +30 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/function_registry.py +55 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/graph_updater.py +955 -192
- code_graph_rag-0.7.180/codebase_rag/handoff.py +242 -0
- code_graph_rag-0.7.180/codebase_rag/index_engine.py +222 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/language_spec.py +68 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/logs.py +94 -13
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/main.py +7 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/mcp/tools.py +66 -11
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parser_fingerprint.py +49 -5
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parser_loader.py +115 -37
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/build_lock.py +41 -9
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/call_processor.py +818 -39
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/call_resolver.py +1034 -85
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/identity.py +4 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/mixin.py +99 -9
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/node_type.py +19 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/parent_extraction.py +45 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/relationships.py +4 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/contracts.py +20 -4
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/preproc_recovery.py +5 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/type_inference.py +109 -6
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp_frontend/frontend.py +5 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp_frontend/frontend.py +15 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/dart/package_paths.py +24 -10
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/definition_docstring.py +84 -6
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/definition_processor.py +24 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/enum_variants.py +17 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/export_detection.py +5 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/field_nodes.py +21 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/flow_access/processor.py +500 -143
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/function_ingest.py +36 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/builds.py +44 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/module_paths.py +21 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go_frontend/frontend.py +582 -57
- code_graph_rag-0.7.180/codebase_rag/parsers/go_frontend/go_env.py +82 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go_frontend/gotypes/main.go +18 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/import_processor.py +603 -159
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/processor.py +10 -34
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/py_handles.py +169 -12
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java/method_resolver.py +5 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java/type_inference.py +194 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java/variable_analyzer.py +80 -15
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java_generated.py +32 -12
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java_lombok.py +9 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/ingest.py +13 -4
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/module_paths.py +22 -8
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/module_system.py +18 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/type_inference.py +178 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/utils.py +383 -2
- code_graph_rag-0.7.180/codebase_rag/parsers/lean/__init__.py +1 -0
- code_graph_rag-0.7.180/codebase_rag/parsers/lean/calls.py +873 -0
- code_graph_rag-0.7.180/codebase_rag/parsers/lean/names.py +435 -0
- code_graph_rag-0.7.180/codebase_rag/parsers/lean/recovery.py +1167 -0
- code_graph_rag-0.7.180/codebase_rag/parsers/lean/utils.py +819 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/lua/utils.py +1 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/module_docstring.py +47 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/native_trees.py +3 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/parameter_nodes.py +38 -0
- code_graph_rag-0.7.180/codebase_rag/parsers/php/callables.py +486 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/php/class_names.py +29 -2
- code_graph_rag-0.7.180/codebase_rag/parsers/php/references.py +412 -0
- code_graph_rag-0.7.180/codebase_rag/parsers/php/utils.py +240 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/__init__.py +10 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/ast_analyzer.py +196 -17
- code_graph_rag-0.7.180/codebase_rag/parsers/py/receiver_rebinding.py +350 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/utils.py +259 -22
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/variable_analyzer.py +158 -13
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/with_analyzer.py +8 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/python_source_roots.py +36 -7
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/stdlib_extractor.py +8 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/structure_processor.py +201 -87
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/type_inference.py +253 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/utils.py +19 -3
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/graph_service.py +84 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/protobuf_service.py +2 -1
- code_graph_rag-0.7.180/codebase_rag/services/resource_cleanup.py +64 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/structural_check.py +27 -4
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/structural_delta.py +1323 -37
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/ast_grep_service.py +14 -8
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/semantic_search.py +14 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/tool_descriptions.py +9 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/ingest.py +9 -6
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/types_defs.py +125 -1
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/path_utils.py +145 -12
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/vector_store.py +43 -4
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codec/schema.proto +3 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codec/schema_pb2.py +14 -14
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codec/schema_pb2.pyi +4 -2
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/pyproject.toml +21 -9
- code_graph_rag-0.7.79/codebase_rag/parsers/php/utils.py +0 -109
- code_graph_rag-0.7.79/codebase_rag/parsers/py/receiver_rebinding.py +0 -103
- code_graph_rag-0.7.79/codebase_rag/services/resource_cleanup.py +0 -44
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/LICENSE +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/cgr/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/code_graph_rag.egg-info/dependency_links.txt +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/code_graph_rag.egg-info/entry_points.txt +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/code_graph_rag.egg-info/top_level.txt +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/_cli_env.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_analyzer.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/c.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/cpp.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/csharp.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/dart.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/go.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/java.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/javascript.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/lua.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/php.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/python.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/ruby.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/rust.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/scala.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/tsx.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/patterns/typescript.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/c.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/cpp.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/csharp.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/dart.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/go.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/java.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/javascript.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/lua.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/php.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/python.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/ruby.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/rust.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/scala.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/tsx.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/security/typescript.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/c.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/cpp.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/csharp.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/dart.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/go.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/java.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/javascript.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/lua.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/php.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/python.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/ruby.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/rust.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/scala.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/tsx.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/ast_grep_rules/smells/typescript.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/analyzers/finding_filters.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/capture.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/check_isolation.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/checkout_state.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/cli_runtime.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/console_marks.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_csharp.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_dart.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_go.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_java.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_julia.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_rust.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_scala.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/ast_sql.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/build.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/deadcode_roots.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/health.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/identifiers.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/interface.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/lang_tooling.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/notebook.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/port.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/security.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/sqlite_vectors.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/structural.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/constants/surface.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/context_pruning.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/context_slice.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/crash_correlation.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/dead_code.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/decorators.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/dispatch_dependents.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/duplicates.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/cli.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/contract.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/import_paths.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/imports.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/move.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/occurrences.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/patcher.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/signature.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/signature_bind.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/signature_contract.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/signature_js.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/signature_js_bind.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/signature_spec.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/sites.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editing/transaction.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/editor_links.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/compiler.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/connection.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/cypher_ast.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/executor.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/expressions.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/extension.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/functions.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/lexer.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/limits.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/native.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/parser.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/procedures.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/sql.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/store.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedded_graph/types.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/embedder.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/flow_verdict.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/gloss.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/gloss_anchor.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/gloss_repair.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/graph_audit.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/graph_cli.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/graph_dialects.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/graph_loader.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/graph_query.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/instructions_trust.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/interface_skip.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/mcp/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/mcp/client.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/mcp/server.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/mgclient_compat.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/mgclient_probe.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/models.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/anchor_hash.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_fingerprint.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/bash.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/elixir.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/haskell.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/kotlin.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/nix.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/ruby.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/solidity.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_patterns/swift.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_scope.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/ast_grep_tier.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/callable_flow_scope.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/base_targets.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/cpp_modules.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/method_override.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/class_ingest/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/constant_nodes.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/contract_linking.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/class_macro.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/function_values.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/local_types.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/out_of_line.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/overloads.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/trailing_annotation.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp_frontend/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp_frontend/constants.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/cpp_frontend/qn.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp/arity.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp/type_inference.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp_frontend/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.cs +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp_frontend/roslyn/Frontend.csproj +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/csharp_frontend/roslyn/Program.cs +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/dart/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/dart/type_inference.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/dart/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/dependency_parser.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/dispatch_registry.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/document_tier.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/endpoint_prefixes.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/endpoint_routes.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/endpoints.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/factory.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/flat_module.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/flow_access/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/flow_access/constants.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontend_mode.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/cpp.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/csharp.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/go.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/java.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/protocol.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/python.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/frontends/registry.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/interface_ingest.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/interfaces.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/link_state.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/type_inference.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go_frontend/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go_frontend/gotypes/go.mod +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/go_frontend/gotypes/go.sum +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/base.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/cpp.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/java.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/js_ts.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/julia.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/lua.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/php.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/protocol.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/python.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/registry.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/handlers/rust.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/interface_fingerprint.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/constants.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/descriptor.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/env_bindings.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/extract.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/models.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/registry.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/resource_names.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/io_access/url_folding.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java/type_resolver.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java_frontend/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java_frontend/frontend.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/java_frontend/javac/cgr/Frontend.java +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/commonjs_exports.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/overloads.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/js_ts/reexports.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/julia/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/julia/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/lua/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/lua/type_inference.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/notebook.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/php/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/php/namespaces.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/positional_params.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/class_aliases.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/definition_index.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/expression_analyzer.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/flow_bindings.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/forward_refs.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/overloads.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/patterns.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py/type_inference.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py_frontend/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/py_frontend/frontend.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/rpc_exposure.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/rs/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/rs/cargo_semver.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/rs/type_inference.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/rs/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/scala/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/scala/utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/semantic_call_join.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/sql_ddl.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/sql_recovery.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/string_call.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/parsers/type_facts.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/path_filters.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/port_cli.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/port_parity.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/project_selection.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/prompts.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/providers/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/providers/base.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/providers/litellm.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/c_sharp.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/dart.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/java.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/javascript.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/julia.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/php.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/python.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/rust.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/queries/highlights/typescript.scm +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/query_predicates.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/readme_sections.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/schema_builder.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/schema_parse.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/schemas.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/sensitive_paths.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/anthropic_token_counter.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/cypher_guard.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/filtering.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/gloss_cleanup.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/graph_diff.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/llm.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/neo4j_driver.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/provenance.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/services/usage_cost.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/source_checkout.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/sql_names.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/sqlite_vectors.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/stack/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/stack/cli.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/stack/constants.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/stack/health.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/stack/manager.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/sync_guard.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/sync_lock.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/taint.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tool_errors.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/code_retrieval.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/codebase_query.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/directory_lister.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/duplicate_detection.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/file_editor.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/file_reader.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/file_writer.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/graph_refresh.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/graph_rerank.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/health_checker.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/language.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/language_catalog.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/research.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/shell_command.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/structural_editor.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/structural_search.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tools/web_search.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/agents.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/c_agent/cgr_trace_shim.c +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/carry.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/cli.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/cpuprofile.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/dart_collector/bin/cgr_trace_collect.dart +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/dart_collector/pubspec.lock +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/dart_collector/pubspec.yaml +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/dispatch_site.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/ebpf_pprof.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/instrumented.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/jvm_agent/MANIFEST.MF +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/jvm_agent/src/cgr/trace/CgrTraceAgent.java +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/jvm_agent/src/cgr/trace/Json.java +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/jvm_agent/src/cgr/trace/MethodEntryTransformer.java +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/jvm_agent/src/cgr/trace/TraceRecorder.java +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/lua_agent/cgr_trace.lua +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/pprof.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/pytest_plugin.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/records.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/resolution.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/rust_pprof.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/sourcemap.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/speedscope.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/tracer.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/trace/xdebug.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/tree_sitter_point.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/unixcoder.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/char_columns.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/cpp_signatures.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/dependencies.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/endpoints.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/fqn_resolver.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/interruptible_thread.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/json_io.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/process_owner.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/qn_markers.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/rich_markdown.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/safe_xml.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/source_encoding.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/source_extraction.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/terminal_console.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/token_utils.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/utils/toml_writer.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/watch.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/workspaces/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/workspaces/cli.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/workspaces/constants.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/workspaces/models.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codebase_rag/workspaces/storage.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/codec/__init__.py +0 -0
- {code_graph_rag-0.7.79 → code_graph_rag-0.7.180}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.180
|
|
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
|
|
@@ -30,7 +30,7 @@ Requires-Dist: pydantic-settings>=2.12.0
|
|
|
30
30
|
Requires-Dist: python-dotenv>=1.2.1
|
|
31
31
|
Requires-Dist: tiktoken>=0.12.0
|
|
32
32
|
Requires-Dist: tree-sitter-python>=0.25.0
|
|
33
|
-
Requires-Dist: tree-sitter==0.
|
|
33
|
+
Requires-Dist: tree-sitter==0.27.0
|
|
34
34
|
Requires-Dist: watchdog>=6.0.0
|
|
35
35
|
Requires-Dist: typer>=0.21.1
|
|
36
36
|
Requires-Dist: rich>=14.2.0
|
|
@@ -44,7 +44,7 @@ Requires-Dist: pygments>=2.20.0
|
|
|
44
44
|
Requires-Dist: httpx>=0.28.1
|
|
45
45
|
Requires-Dist: certifi>=2026.10.23
|
|
46
46
|
Requires-Dist: regex>=2024.11.6
|
|
47
|
-
Requires-Dist: cgr-graph-rs<0.2,>=0.1.
|
|
47
|
+
Requires-Dist: cgr-graph-rs<0.2,>=0.1.27
|
|
48
48
|
Provides-Extra: test
|
|
49
49
|
Requires-Dist: jedi>=0.19; extra == "test"
|
|
50
50
|
Requires-Dist: pytest>=8.4.1; extra == "test"
|
|
@@ -69,11 +69,11 @@ Requires-Dist: tree-sitter-python>=0.23.6; extra == "treesitter-full"
|
|
|
69
69
|
Requires-Dist: tree-sitter-javascript>=0.23.1; extra == "treesitter-full"
|
|
70
70
|
Requires-Dist: tree-sitter-typescript>=0.23.2; extra == "treesitter-full"
|
|
71
71
|
Requires-Dist: tree-sitter-rust>=0.24.0; extra == "treesitter-full"
|
|
72
|
-
Requires-Dist: tree-sitter-go
|
|
72
|
+
Requires-Dist: tree-sitter-go==0.25.0; extra == "treesitter-full"
|
|
73
73
|
Requires-Dist: tree-sitter-scala>=0.24.0; extra == "treesitter-full"
|
|
74
74
|
Requires-Dist: tree-sitter-java>=0.23.5; extra == "treesitter-full"
|
|
75
|
-
Requires-Dist: tree-sitter-c
|
|
76
|
-
Requires-Dist: tree-sitter-cpp
|
|
75
|
+
Requires-Dist: tree-sitter-c==0.24.1; extra == "treesitter-full"
|
|
76
|
+
Requires-Dist: tree-sitter-cpp==0.23.4; extra == "treesitter-full"
|
|
77
77
|
Requires-Dist: tree-sitter-lua>=0.0.19; extra == "treesitter-full"
|
|
78
78
|
Requires-Dist: tree-sitter-julia>=0.23.1; extra == "treesitter-full"
|
|
79
79
|
Requires-Dist: tree-sitter-php>=0.24.1; extra == "treesitter-full"
|
|
@@ -121,7 +121,7 @@ Point it at a repository and it reads every source file, extracts functions, cla
|
|
|
121
121
|
|
|
122
122
|
## Supported Languages
|
|
123
123
|
|
|
124
|
-
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, and
|
|
124
|
+
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart, and Lean 4 are fully supported. Scala is in development, and Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash, and Nix have structural support (modules, functions, classes where the language has them, and imports) through the pluggable ast-grep tier, which requires the `ast-grep` extra (`pip install 'code-graph-rag[ast-grep]'`).
|
|
125
125
|
|
|
126
126
|
## Install
|
|
127
127
|
|
|
@@ -171,10 +171,10 @@ To run code newer than the latest release, install from git with uv:
|
|
|
171
171
|
uv tool install "code-graph-rag[treesitter-full,ast-grep] @ git+https://github.com/vitali87/code-graph-rag@main"
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
`#define` whose value contains a block comment.
|
|
177
|
-
|
|
174
|
+
Every install, from PyPI or from git, parses C and C++ with the patched grammars
|
|
175
|
+
compiled into `cgr-graph-rs`, which keep the declarations the upstream grammars
|
|
176
|
+
drop after a `#define` whose value contains a block comment. Lean 4 is parsed
|
|
177
|
+
with the grammar compiled into `cgr-graph-rs` too, as it has no grammar package.
|
|
178
178
|
|
|
179
179
|
To upgrade, rerun the install with `--upgrade` and the extras you chose, for
|
|
180
180
|
example `pip install --upgrade 'code-graph-rag[treesitter-full,ast-grep]'`. With uv or pipx,
|
|
@@ -19,7 +19,7 @@ Point it at a repository and it reads every source file, extracts functions, cla
|
|
|
19
19
|
|
|
20
20
|
## Supported Languages
|
|
21
21
|
|
|
22
|
-
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, and
|
|
22
|
+
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart, and Lean 4 are fully supported. Scala is in development, and Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash, and Nix have structural support (modules, functions, classes where the language has them, and imports) through the pluggable ast-grep tier, which requires the `ast-grep` extra (`pip install 'code-graph-rag[ast-grep]'`).
|
|
23
23
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
@@ -69,10 +69,10 @@ To run code newer than the latest release, install from git with uv:
|
|
|
69
69
|
uv tool install "code-graph-rag[treesitter-full,ast-grep] @ git+https://github.com/vitali87/code-graph-rag@main"
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
`#define` whose value contains a block comment.
|
|
75
|
-
|
|
72
|
+
Every install, from PyPI or from git, parses C and C++ with the patched grammars
|
|
73
|
+
compiled into `cgr-graph-rs`, which keep the declarations the upstream grammars
|
|
74
|
+
drop after a `#define` whose value contains a block comment. Lean 4 is parsed
|
|
75
|
+
with the grammar compiled into `cgr-graph-rs` too, as it has no grammar package.
|
|
76
76
|
|
|
77
77
|
To upgrade, rerun the install with `--upgrade` and the extras you chose, for
|
|
78
78
|
example `pip install --upgrade 'code-graph-rag[treesitter-full,ast-grep]'`. With uv or pipx,
|
|
@@ -61,8 +61,9 @@ 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
|
-
- **
|
|
64
|
+
- **Handoff Enhancements**: Go index sections, engine comparison, and a preview flag have been added to the handoff feature. Imports are now listed after incremental runs on a new updater, and deleted module imports are dropped from reused updaters.
|
|
65
|
+
- **Go Type Checker Fixes**: Several fixes address issues with the Go type checker, including handling bad input as failed runs, ensuring bare calls name the package function, and managing GOFLAGS -modfile in various scenarios.
|
|
66
|
+
- **Lean 4 Support**: Lean 4 is now officially supported.
|
|
66
67
|
<!-- /SECTION:latest_news -->
|
|
67
68
|
|
|
68
69
|
See [NEWS.md](NEWS.md) for the full history.
|
|
@@ -98,7 +99,7 @@ See the [Architecture Overview](docs/architecture/overview.md) and [Graph Schema
|
|
|
98
99
|
|
|
99
100
|
## Supported Languages
|
|
100
101
|
|
|
101
|
-
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart, and
|
|
102
|
+
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart, Julia, and Lean 4 are fully supported. Scala is in development, and Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash, and Nix have structural support (modules, functions, classes where the language has them, and imports) through the pluggable ast-grep tier. See the [Language Support](docs/architecture/language-support.md) matrix for per-language capabilities.
|
|
102
103
|
|
|
103
104
|
## Installation
|
|
104
105
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: code-graph-rag
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.180
|
|
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
|
|
@@ -30,7 +30,7 @@ Requires-Dist: pydantic-settings>=2.12.0
|
|
|
30
30
|
Requires-Dist: python-dotenv>=1.2.1
|
|
31
31
|
Requires-Dist: tiktoken>=0.12.0
|
|
32
32
|
Requires-Dist: tree-sitter-python>=0.25.0
|
|
33
|
-
Requires-Dist: tree-sitter==0.
|
|
33
|
+
Requires-Dist: tree-sitter==0.27.0
|
|
34
34
|
Requires-Dist: watchdog>=6.0.0
|
|
35
35
|
Requires-Dist: typer>=0.21.1
|
|
36
36
|
Requires-Dist: rich>=14.2.0
|
|
@@ -44,7 +44,7 @@ Requires-Dist: pygments>=2.20.0
|
|
|
44
44
|
Requires-Dist: httpx>=0.28.1
|
|
45
45
|
Requires-Dist: certifi>=2026.10.23
|
|
46
46
|
Requires-Dist: regex>=2024.11.6
|
|
47
|
-
Requires-Dist: cgr-graph-rs<0.2,>=0.1.
|
|
47
|
+
Requires-Dist: cgr-graph-rs<0.2,>=0.1.27
|
|
48
48
|
Provides-Extra: test
|
|
49
49
|
Requires-Dist: jedi>=0.19; extra == "test"
|
|
50
50
|
Requires-Dist: pytest>=8.4.1; extra == "test"
|
|
@@ -69,11 +69,11 @@ Requires-Dist: tree-sitter-python>=0.23.6; extra == "treesitter-full"
|
|
|
69
69
|
Requires-Dist: tree-sitter-javascript>=0.23.1; extra == "treesitter-full"
|
|
70
70
|
Requires-Dist: tree-sitter-typescript>=0.23.2; extra == "treesitter-full"
|
|
71
71
|
Requires-Dist: tree-sitter-rust>=0.24.0; extra == "treesitter-full"
|
|
72
|
-
Requires-Dist: tree-sitter-go
|
|
72
|
+
Requires-Dist: tree-sitter-go==0.25.0; extra == "treesitter-full"
|
|
73
73
|
Requires-Dist: tree-sitter-scala>=0.24.0; extra == "treesitter-full"
|
|
74
74
|
Requires-Dist: tree-sitter-java>=0.23.5; extra == "treesitter-full"
|
|
75
|
-
Requires-Dist: tree-sitter-c
|
|
76
|
-
Requires-Dist: tree-sitter-cpp
|
|
75
|
+
Requires-Dist: tree-sitter-c==0.24.1; extra == "treesitter-full"
|
|
76
|
+
Requires-Dist: tree-sitter-cpp==0.23.4; extra == "treesitter-full"
|
|
77
77
|
Requires-Dist: tree-sitter-lua>=0.0.19; extra == "treesitter-full"
|
|
78
78
|
Requires-Dist: tree-sitter-julia>=0.23.1; extra == "treesitter-full"
|
|
79
79
|
Requires-Dist: tree-sitter-php>=0.24.1; extra == "treesitter-full"
|
|
@@ -121,7 +121,7 @@ Point it at a repository and it reads every source file, extracts functions, cla
|
|
|
121
121
|
|
|
122
122
|
## Supported Languages
|
|
123
123
|
|
|
124
|
-
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, and
|
|
124
|
+
Python, TypeScript, TSX, JavaScript, Rust, Go, Java, C, C++, C#, PHP, Lua, Dart, and Lean 4 are fully supported. Scala is in development, and Ruby, Kotlin, Swift, Elixir, Haskell, Solidity, Bash, and Nix have structural support (modules, functions, classes where the language has them, and imports) through the pluggable ast-grep tier, which requires the `ast-grep` extra (`pip install 'code-graph-rag[ast-grep]'`).
|
|
125
125
|
|
|
126
126
|
## Install
|
|
127
127
|
|
|
@@ -171,10 +171,10 @@ To run code newer than the latest release, install from git with uv:
|
|
|
171
171
|
uv tool install "code-graph-rag[treesitter-full,ast-grep] @ git+https://github.com/vitali87/code-graph-rag@main"
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
`#define` whose value contains a block comment.
|
|
177
|
-
|
|
174
|
+
Every install, from PyPI or from git, parses C and C++ with the patched grammars
|
|
175
|
+
compiled into `cgr-graph-rs`, which keep the declarations the upstream grammars
|
|
176
|
+
drop after a `#define` whose value contains a block comment. Lean 4 is parsed
|
|
177
|
+
with the grammar compiled into `cgr-graph-rs` too, as it has no grammar package.
|
|
178
178
|
|
|
179
179
|
To upgrade, rerun the install with `--upgrade` and the extras you chose, for
|
|
180
180
|
example `pip install --upgrade 'code-graph-rag[treesitter-full,ast-grep]'`. With uv or pipx,
|
|
@@ -12,6 +12,7 @@ code_graph_rag.egg-info/top_level.txt
|
|
|
12
12
|
codebase_rag/__init__.py
|
|
13
13
|
codebase_rag/_cli_env.py
|
|
14
14
|
codebase_rag/ast_cache.py
|
|
15
|
+
codebase_rag/canonical_graph.py
|
|
15
16
|
codebase_rag/capture.py
|
|
16
17
|
codebase_rag/check_isolation.py
|
|
17
18
|
codebase_rag/checkout_state.py
|
|
@@ -23,6 +24,7 @@ codebase_rag/console_marks.py
|
|
|
23
24
|
codebase_rag/context_pruning.py
|
|
24
25
|
codebase_rag/context_slice.py
|
|
25
26
|
codebase_rag/crash_correlation.py
|
|
27
|
+
codebase_rag/crate_grammars.py
|
|
26
28
|
codebase_rag/cypher_queries.py
|
|
27
29
|
codebase_rag/dead_code.py
|
|
28
30
|
codebase_rag/decorators.py
|
|
@@ -31,6 +33,7 @@ codebase_rag/docker-compose.yaml
|
|
|
31
33
|
codebase_rag/duplicates.py
|
|
32
34
|
codebase_rag/editor_links.py
|
|
33
35
|
codebase_rag/embedder.py
|
|
36
|
+
codebase_rag/engine_frame.py
|
|
34
37
|
codebase_rag/exceptions.py
|
|
35
38
|
codebase_rag/flow_verdict.py
|
|
36
39
|
codebase_rag/function_registry.py
|
|
@@ -43,6 +46,8 @@ codebase_rag/graph_dialects.py
|
|
|
43
46
|
codebase_rag/graph_loader.py
|
|
44
47
|
codebase_rag/graph_query.py
|
|
45
48
|
codebase_rag/graph_updater.py
|
|
49
|
+
codebase_rag/handoff.py
|
|
50
|
+
codebase_rag/index_engine.py
|
|
46
51
|
codebase_rag/instructions_trust.py
|
|
47
52
|
codebase_rag/interface_skip.py
|
|
48
53
|
codebase_rag/language_spec.py
|
|
@@ -134,6 +139,7 @@ codebase_rag/constants/ast_go.py
|
|
|
134
139
|
codebase_rag/constants/ast_java.py
|
|
135
140
|
codebase_rag/constants/ast_js.py
|
|
136
141
|
codebase_rag/constants/ast_julia.py
|
|
142
|
+
codebase_rag/constants/ast_lean.py
|
|
137
143
|
codebase_rag/constants/ast_lua.py
|
|
138
144
|
codebase_rag/constants/ast_nodes.py
|
|
139
145
|
codebase_rag/constants/ast_php.py
|
|
@@ -150,8 +156,10 @@ codebase_rag/constants/duplicates.py
|
|
|
150
156
|
codebase_rag/constants/embedded_graph.py
|
|
151
157
|
codebase_rag/constants/fqn_specs.py
|
|
152
158
|
codebase_rag/constants/graph.py
|
|
159
|
+
codebase_rag/constants/handoff.py
|
|
153
160
|
codebase_rag/constants/health.py
|
|
154
161
|
codebase_rag/constants/identifiers.py
|
|
162
|
+
codebase_rag/constants/index_engine.py
|
|
155
163
|
codebase_rag/constants/interface.py
|
|
156
164
|
codebase_rag/constants/lang_tooling.py
|
|
157
165
|
codebase_rag/constants/languages.py
|
|
@@ -159,6 +167,7 @@ codebase_rag/constants/mcp.py
|
|
|
159
167
|
codebase_rag/constants/notebook.py
|
|
160
168
|
codebase_rag/constants/port.py
|
|
161
169
|
codebase_rag/constants/providers.py
|
|
170
|
+
codebase_rag/constants/reference_answers.py
|
|
162
171
|
codebase_rag/constants/reference_graphs.py
|
|
163
172
|
codebase_rag/constants/security.py
|
|
164
173
|
codebase_rag/constants/sqlite_vectors.py
|
|
@@ -316,6 +325,7 @@ codebase_rag/parsers/go/type_inference.py
|
|
|
316
325
|
codebase_rag/parsers/go/utils.py
|
|
317
326
|
codebase_rag/parsers/go_frontend/__init__.py
|
|
318
327
|
codebase_rag/parsers/go_frontend/frontend.py
|
|
328
|
+
codebase_rag/parsers/go_frontend/go_env.py
|
|
319
329
|
codebase_rag/parsers/go_frontend/gotypes/go.mod
|
|
320
330
|
codebase_rag/parsers/go_frontend/gotypes/go.sum
|
|
321
331
|
codebase_rag/parsers/go_frontend/gotypes/main.go
|
|
@@ -362,12 +372,19 @@ codebase_rag/parsers/js_ts/type_inference.py
|
|
|
362
372
|
codebase_rag/parsers/js_ts/utils.py
|
|
363
373
|
codebase_rag/parsers/julia/__init__.py
|
|
364
374
|
codebase_rag/parsers/julia/utils.py
|
|
375
|
+
codebase_rag/parsers/lean/__init__.py
|
|
376
|
+
codebase_rag/parsers/lean/calls.py
|
|
377
|
+
codebase_rag/parsers/lean/names.py
|
|
378
|
+
codebase_rag/parsers/lean/recovery.py
|
|
379
|
+
codebase_rag/parsers/lean/utils.py
|
|
365
380
|
codebase_rag/parsers/lua/__init__.py
|
|
366
381
|
codebase_rag/parsers/lua/type_inference.py
|
|
367
382
|
codebase_rag/parsers/lua/utils.py
|
|
368
383
|
codebase_rag/parsers/php/__init__.py
|
|
384
|
+
codebase_rag/parsers/php/callables.py
|
|
369
385
|
codebase_rag/parsers/php/class_names.py
|
|
370
386
|
codebase_rag/parsers/php/namespaces.py
|
|
387
|
+
codebase_rag/parsers/php/references.py
|
|
371
388
|
codebase_rag/parsers/php/utils.py
|
|
372
389
|
codebase_rag/parsers/py/__init__.py
|
|
373
390
|
codebase_rag/parsers/py/ast_analyzer.py
|
|
@@ -7,7 +7,7 @@ pydantic-settings>=2.12.0
|
|
|
7
7
|
python-dotenv>=1.2.1
|
|
8
8
|
tiktoken>=0.12.0
|
|
9
9
|
tree-sitter-python>=0.25.0
|
|
10
|
-
tree-sitter==0.
|
|
10
|
+
tree-sitter==0.27.0
|
|
11
11
|
watchdog>=6.0.0
|
|
12
12
|
typer>=0.21.1
|
|
13
13
|
rich>=14.2.0
|
|
@@ -21,7 +21,7 @@ pygments>=2.20.0
|
|
|
21
21
|
httpx>=0.28.1
|
|
22
22
|
certifi>=2026.10.23
|
|
23
23
|
regex>=2024.11.6
|
|
24
|
-
cgr-graph-rs<0.2,>=0.1.
|
|
24
|
+
cgr-graph-rs<0.2,>=0.1.27
|
|
25
25
|
|
|
26
26
|
[ast-grep]
|
|
27
27
|
ast-grep-py>=0.51.0
|
|
@@ -75,11 +75,11 @@ tree-sitter-python>=0.23.6
|
|
|
75
75
|
tree-sitter-javascript>=0.23.1
|
|
76
76
|
tree-sitter-typescript>=0.23.2
|
|
77
77
|
tree-sitter-rust>=0.24.0
|
|
78
|
-
tree-sitter-go
|
|
78
|
+
tree-sitter-go==0.25.0
|
|
79
79
|
tree-sitter-scala>=0.24.0
|
|
80
80
|
tree-sitter-java>=0.23.5
|
|
81
|
-
tree-sitter-c
|
|
82
|
-
tree-sitter-cpp
|
|
81
|
+
tree-sitter-c==0.24.1
|
|
82
|
+
tree-sitter-cpp==0.23.4
|
|
83
83
|
tree-sitter-lua>=0.0.19
|
|
84
84
|
tree-sitter-julia>=0.23.1
|
|
85
85
|
tree-sitter-php>=0.24.1
|
|
@@ -71,6 +71,14 @@ class BoundedASTCache:
|
|
|
71
71
|
self[key] = entry
|
|
72
72
|
return entry
|
|
73
73
|
|
|
74
|
+
def peek(self, key: Path) -> tuple[Node, cs.SupportedLanguage] | None:
|
|
75
|
+
# `load` for a reader beside the run, which must leave what the run
|
|
76
|
+
# reads as it was: a cached tree keeps its place in the LRU order and
|
|
77
|
+
# a parsed one is not kept, so nothing is evicted for it.
|
|
78
|
+
if (entry := self.cache.get(key)) is not None:
|
|
79
|
+
return entry
|
|
80
|
+
return self.loader(key) if self.loader is not None else None
|
|
81
|
+
|
|
74
82
|
def __setitem__(self, key: Path, value: tuple[Node, cs.SupportedLanguage]) -> None:
|
|
75
83
|
self._remove(key)
|
|
76
84
|
size = _estimate_entry_bytes(value)
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"""The reference graphs' line format (issue #3629).
|
|
2
|
+
|
|
3
|
+
A graph export, as `cgr start -o` writes it, becomes sorted text: one node or
|
|
4
|
+
relationship per line, keyed by what the graph keys it on, with the
|
|
5
|
+
checkout's directory written as `<root>` and the time of the run left out.
|
|
6
|
+
Two indexes of the same code give the same lines wherever and whenever they
|
|
7
|
+
ran, so a difference between two sets of lines is a difference in the graph.
|
|
8
|
+
|
|
9
|
+
`scripts/reference_graphs.py` keeps the pinned repositories' graphs in this
|
|
10
|
+
form. The Rust rewrite's parity checks write and compare the two engines'
|
|
11
|
+
graphs and hand-offs in it too (docs/reports/PHASE1_SEAMS.md), and code under
|
|
12
|
+
`codebase_rag` cannot import from `scripts/`, so it lives here, with the rules
|
|
13
|
+
those checks compare the hand-off files by.
|
|
14
|
+
|
|
15
|
+
An export that is not one (no node or relationship list, a node without its
|
|
16
|
+
row number, an edge to a node it lacks) raises `SystemExit` naming what is
|
|
17
|
+
wrong: the scripts that read one cannot go on without it.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
import difflib
|
|
23
|
+
import json
|
|
24
|
+
import os
|
|
25
|
+
from collections import Counter
|
|
26
|
+
from collections.abc import Iterable, Sequence
|
|
27
|
+
from pathlib import Path
|
|
28
|
+
|
|
29
|
+
from . import constants as cs
|
|
30
|
+
from . import exceptions as ex
|
|
31
|
+
from .types_defs import ExportRecord, JsonValue
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def root_spellings(source: Path) -> list[str]:
|
|
35
|
+
"""Every way an export may write the directory `source`, longest first,
|
|
36
|
+
so a longer spelling is replaced before a shorter one inside it."""
|
|
37
|
+
# Native and forward-slash spellings of both: on Windows the export
|
|
38
|
+
# writes `C:/cache/x/...` while `str(Path)` gives `C:\cache\x`.
|
|
39
|
+
return sorted(
|
|
40
|
+
{
|
|
41
|
+
spelling
|
|
42
|
+
for path in (source, source.resolve())
|
|
43
|
+
for spelling in (str(path), path.as_posix())
|
|
44
|
+
},
|
|
45
|
+
key=len,
|
|
46
|
+
reverse=True,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def with_root_placeholder(value: JsonValue, roots: Sequence[str]) -> JsonValue:
|
|
51
|
+
"""`value` with every path under one of `roots` written from `<root>`,
|
|
52
|
+
with `/`, inside lists and maps too."""
|
|
53
|
+
if isinstance(value, str):
|
|
54
|
+
for root in roots:
|
|
55
|
+
if value == root or value.startswith(
|
|
56
|
+
(f"{root}{cs.SEPARATOR_SLASH}", f"{root}{os.sep}")
|
|
57
|
+
):
|
|
58
|
+
rest = value[len(root) :].replace(os.sep, cs.SEPARATOR_SLASH)
|
|
59
|
+
return f"{cs.REFERENCE_ROOT_PLACEHOLDER}{rest}"
|
|
60
|
+
return value
|
|
61
|
+
if isinstance(value, list):
|
|
62
|
+
return [with_root_placeholder(item, roots) for item in value]
|
|
63
|
+
if isinstance(value, dict):
|
|
64
|
+
return {key: with_root_placeholder(item, roots) for key, item in value.items()}
|
|
65
|
+
return value
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def canonical_json(value: JsonValue) -> str:
|
|
69
|
+
"""`value` as a line writes JSON: sorted keys, no ASCII escaping, no
|
|
70
|
+
spaces."""
|
|
71
|
+
return json.dumps(
|
|
72
|
+
value,
|
|
73
|
+
sort_keys=True,
|
|
74
|
+
ensure_ascii=False,
|
|
75
|
+
separators=cs.REFERENCE_JSON_SEPARATORS,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _properties(record: ExportRecord, roots: Sequence[str]) -> dict[str, JsonValue]:
|
|
80
|
+
properties = record.get(cs.KEY_PROPERTIES) or {}
|
|
81
|
+
if not isinstance(properties, dict):
|
|
82
|
+
raise SystemExit(ex.CANONICAL_NO_PROPERTIES.format(record=record))
|
|
83
|
+
return {
|
|
84
|
+
name: with_root_placeholder(value, roots)
|
|
85
|
+
for name, value in properties.items()
|
|
86
|
+
if name not in cs.REFERENCE_VOLATILE_PROPERTIES
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _labels(node: ExportRecord) -> list[str]:
|
|
91
|
+
raw_labels = node.get(cs.KEY_LABELS) or []
|
|
92
|
+
return (
|
|
93
|
+
sorted(str(label) for label in raw_labels)
|
|
94
|
+
if isinstance(raw_labels, list)
|
|
95
|
+
else []
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def _key_name(labels: Sequence[str]) -> str | None:
|
|
100
|
+
"""The property the graph keys a node on: the key of the first of its
|
|
101
|
+
sorted labels that has one."""
|
|
102
|
+
return next(
|
|
103
|
+
(
|
|
104
|
+
cs.NODE_UNIQUE_CONSTRAINTS[label]
|
|
105
|
+
for label in labels
|
|
106
|
+
if label in cs.NODE_UNIQUE_CONSTRAINTS
|
|
107
|
+
),
|
|
108
|
+
None,
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
def _node(node: JsonValue, roots: Sequence[str]) -> tuple[int, str, str]:
|
|
113
|
+
"""A node's row number, the name its edges' lines call it by, and its
|
|
114
|
+
own line."""
|
|
115
|
+
node_id = node.get(cs.KEY_NODE_ID) if isinstance(node, dict) else None
|
|
116
|
+
if not isinstance(node, dict) or not isinstance(node_id, int):
|
|
117
|
+
raise SystemExit(ex.CANONICAL_NO_NODE_ID.format(node=node))
|
|
118
|
+
labels = _labels(node)
|
|
119
|
+
properties = _properties(node, roots)
|
|
120
|
+
key_name = _key_name(labels)
|
|
121
|
+
key = properties.pop(key_name, None) if key_name else None
|
|
122
|
+
label_text = cs.REFERENCE_LABEL_SEPARATOR.join(labels)
|
|
123
|
+
sep = cs.REFERENCE_FIELD_SEPARATOR
|
|
124
|
+
name = sep.join((label_text, canonical_json(key)))
|
|
125
|
+
line = sep.join(
|
|
126
|
+
(
|
|
127
|
+
cs.REFERENCE_NODE_TAG,
|
|
128
|
+
label_text,
|
|
129
|
+
canonical_json(key),
|
|
130
|
+
canonical_json(properties),
|
|
131
|
+
)
|
|
132
|
+
)
|
|
133
|
+
return node_id, name, line
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def _edge(relationship: JsonValue, names: dict[int, str], roots: Sequence[str]) -> str:
|
|
137
|
+
"""A relationship's line, its ends named as `names` has them."""
|
|
138
|
+
if not isinstance(relationship, dict):
|
|
139
|
+
raise SystemExit(
|
|
140
|
+
ex.CANONICAL_RELATIONSHIP_NOT_A_RECORD.format(relationship=relationship)
|
|
141
|
+
)
|
|
142
|
+
from_id = relationship.get(cs.KEY_FROM_ID)
|
|
143
|
+
to_id = relationship.get(cs.KEY_TO_ID)
|
|
144
|
+
source_name = names.get(from_id) if isinstance(from_id, int) else None
|
|
145
|
+
target_name = names.get(to_id) if isinstance(to_id, int) else None
|
|
146
|
+
if source_name is None or target_name is None:
|
|
147
|
+
raise SystemExit(
|
|
148
|
+
ex.CANONICAL_UNKNOWN_ENDPOINT.format(relationship=relationship)
|
|
149
|
+
)
|
|
150
|
+
return cs.REFERENCE_FIELD_SEPARATOR.join(
|
|
151
|
+
(
|
|
152
|
+
cs.REFERENCE_EDGE_TAG,
|
|
153
|
+
str(relationship.get(cs.KEY_TYPE)),
|
|
154
|
+
source_name,
|
|
155
|
+
target_name,
|
|
156
|
+
canonical_json(_properties(relationship, roots)),
|
|
157
|
+
)
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
def canonical(export: ExportRecord, source: Path) -> list[str]:
|
|
162
|
+
"""The export as sorted lines, the same wherever and whenever it ran.
|
|
163
|
+
|
|
164
|
+
A node is named by its labels and the property the graph keys that label
|
|
165
|
+
on (`qualified_name`, `absolute_path`, `name`), not by the export's
|
|
166
|
+
`node_id`, which is only a row number of this run's database. Duplicate
|
|
167
|
+
lines are kept: an edge recorded twice is a difference.
|
|
168
|
+
"""
|
|
169
|
+
roots = root_spellings(source)
|
|
170
|
+
# Both lists must be there, even empty: an export missing one would read
|
|
171
|
+
# as an empty graph and `record` would write it over a full one.
|
|
172
|
+
nodes = export.get(cs.KEY_NODES)
|
|
173
|
+
relationships = export.get(cs.KEY_RELATIONSHIPS)
|
|
174
|
+
if not isinstance(nodes, list) or not isinstance(relationships, list):
|
|
175
|
+
raise SystemExit(ex.CANONICAL_NO_LISTS)
|
|
176
|
+
names: dict[int, str] = {}
|
|
177
|
+
lines: list[str] = []
|
|
178
|
+
# Every node first: an edge's line names its ends as their nodes' lines do.
|
|
179
|
+
for node in nodes:
|
|
180
|
+
node_id, name, line = _node(node, roots)
|
|
181
|
+
names[node_id] = name
|
|
182
|
+
lines.append(line)
|
|
183
|
+
lines.extend(_edge(relationship, names, roots) for relationship in relationships)
|
|
184
|
+
return sorted(lines)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def read_graph(path: Path) -> list[str]:
|
|
188
|
+
"""The lines of a file `write_graph` wrote."""
|
|
189
|
+
# Split on the newlines `write_graph` writes, not `splitlines()`'s wider
|
|
190
|
+
# set: a docstring may hold U+2028, which JSON leaves unescaped.
|
|
191
|
+
text = path.read_text(encoding=cs.ENCODING_UTF8)
|
|
192
|
+
return [
|
|
193
|
+
line.removesuffix(cs.CARRIAGE_RETURN)
|
|
194
|
+
for line in text.split(cs.LINE_FEED)
|
|
195
|
+
if line
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def write_graph(path: Path, lines: Iterable[str]) -> None:
|
|
200
|
+
"""`lines` as UTF-8 text, one per line, for `read_graph` to read back."""
|
|
201
|
+
path.write_text(
|
|
202
|
+
"".join(f"{line}{cs.LINE_FEED}" for line in lines),
|
|
203
|
+
encoding=cs.ENCODING_UTF8,
|
|
204
|
+
)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
def difference(expected: Sequence[str], actual: Sequence[str]) -> list[str]:
|
|
208
|
+
"""The lines only one side has, `-` for `expected`'s and `+` for `actual`'s.
|
|
209
|
+
|
|
210
|
+
Compared as multisets: order does not count, repetition does.
|
|
211
|
+
"""
|
|
212
|
+
missing = Counter(expected) - Counter(actual)
|
|
213
|
+
extra = Counter(actual) - Counter(expected)
|
|
214
|
+
removed = [
|
|
215
|
+
cs.REFERENCE_ONLY_EXPECTED.format(line=line)
|
|
216
|
+
for line in sorted(missing.elements())
|
|
217
|
+
]
|
|
218
|
+
added = [
|
|
219
|
+
cs.REFERENCE_ONLY_ACTUAL.format(line=line) for line in sorted(extra.elements())
|
|
220
|
+
]
|
|
221
|
+
return removed + added
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
def difference_in_order(expected: Sequence[str], actual: Sequence[str]) -> list[str]:
|
|
225
|
+
"""The lines only one side has where it has them, `-` for `expected`'s
|
|
226
|
+
and `+` for `actual`'s, in the order the two sides run.
|
|
227
|
+
|
|
228
|
+
Compared as sequences: a line in another place is a difference.
|
|
229
|
+
"""
|
|
230
|
+
matcher = difflib.SequenceMatcher(a=expected, b=actual, autojunk=False)
|
|
231
|
+
diff: list[str] = []
|
|
232
|
+
for tag, start, end, actual_start, actual_end in matcher.get_opcodes():
|
|
233
|
+
if tag == cs.DIFF_OPCODE_EQUAL:
|
|
234
|
+
continue
|
|
235
|
+
diff.extend(
|
|
236
|
+
cs.REFERENCE_ONLY_EXPECTED.format(line=line) for line in expected[start:end]
|
|
237
|
+
)
|
|
238
|
+
diff.extend(
|
|
239
|
+
cs.REFERENCE_ONLY_ACTUAL.format(line=line)
|
|
240
|
+
for line in actual[actual_start:actual_end]
|
|
241
|
+
)
|
|
242
|
+
return diff
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def read_handoff(path: Path) -> list[str]:
|
|
246
|
+
"""The lines of a hand-off file, its header first, split on `\\n` alone.
|
|
247
|
+
|
|
248
|
+
Joined with `\\n` they are the file's bytes again, so two files that
|
|
249
|
+
differ in any byte (a `\\r` before a line end, a missing last one) read
|
|
250
|
+
as different lines.
|
|
251
|
+
"""
|
|
252
|
+
return path.read_bytes().decode(cs.ENCODING_UTF8).split(cs.LINE_FEED)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
def handoff_difference(
|
|
256
|
+
file: cs.HandoffFile, expected: Sequence[str], actual: Sequence[str]
|
|
257
|
+
) -> list[str]:
|
|
258
|
+
"""How `actual`'s lines of the hand-off `file` differ from `expected`'s,
|
|
259
|
+
`-` for `expected`'s and `+` for `actual`'s; a file not written has none.
|
|
260
|
+
|
|
261
|
+
The file plan is compared in order, because its order is data: pass 2
|
|
262
|
+
registers files in walk order, which decides which of two same-stem files
|
|
263
|
+
claims a module's name. The project index is compared as a multiset.
|
|
264
|
+
Files of two format versions are not compared line by line: the
|
|
265
|
+
difference is their headers, which name both versions.
|
|
266
|
+
"""
|
|
267
|
+
if expected[:1] != actual[:1]:
|
|
268
|
+
return [
|
|
269
|
+
*(cs.REFERENCE_ONLY_EXPECTED.format(line=line) for line in expected[:1]),
|
|
270
|
+
*(cs.REFERENCE_ONLY_ACTUAL.format(line=line) for line in actual[:1]),
|
|
271
|
+
]
|
|
272
|
+
if file == cs.HandoffFile.FILES:
|
|
273
|
+
return difference_in_order(expected, actual)
|
|
274
|
+
return difference(expected, actual)
|