codegraphcontext-rust 0.9.12__tar.gz → 0.9.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/PKG-INFO +1 -1
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/pyproject.toml +1 -1
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/parser.rs +4 -2
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-python/src/lib.rs +6 -4
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/engine.py +3 -2
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/pipeline.py +1 -1
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/python.py +4 -2
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/typescript.py +34 -3
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/LICENSE +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/README.md +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/Cargo.lock +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/Cargo.toml +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/Cargo.toml +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/c_lang.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/cpp.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/csharp.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/dart.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/elixir.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/go.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/haskell.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/java.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/javascript.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/kotlin.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/mod.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/perl.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/php.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/python.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/ruby.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/rust_lang.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/scala.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/swift.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/tsx.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/typescript.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lib.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/resolution/calls.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/resolution/inheritance.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/resolution/mod.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/sanitize.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/types.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-python/Cargo.toml +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-python/src/conversions.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/Cargo.toml +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/build.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/grammar/alloc.h +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/grammar/array.h +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/grammar/parser.c +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/grammar/parser.h +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/grammar/scanner.c +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/grammar/tree_sitter/parser.h +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/src/lib.rs +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/__main__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/cli_helpers.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/config_manager.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/main.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/registry_commands.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/setup_macos.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/setup_wizard.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/visualizer.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/bundle_registry.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/cgc_bundle.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/cgcignore.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/database.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/database_falkordb.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/database_falkordb_remote.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/database_kuzu.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/falkor_worker.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/jobs.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/watcher.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/prompts.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/server.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tool_definitions.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/advanced_language_query_tool.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/code_finder.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/graph_builder.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/handlers/analysis_handlers.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/handlers/indexing_handlers.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/handlers/management_handlers.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/handlers/query_handlers.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/handlers/watcher_handlers.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/cgc_wiki_cli.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/constants.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/context_generator.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/discovery.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/execution_flows.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/module_grouping.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/noise_filter.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/op_param_extraction.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/persistence/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/persistence/duckdb_writer.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/persistence/parquet_loader.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/persistence/writer.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/pre_scan.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/rationale_extraction.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/resolution/__init__.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/resolution/calls.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/resolution/inheritance.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/route_extraction.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/sanitize.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/schema.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/schema_contract.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/indexing/scip_pipeline.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/c.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/cpp.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/csharp.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/dart.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/elixir.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/go.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/haskell.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/java.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/javascript.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/kotlin.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/perl.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/php.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/ruby.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/rust.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/scala.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/swift.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/languages/typescriptjsx.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/package_resolver.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/c_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/cpp_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/csharp_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/dart_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/go_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/haskell_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/java_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/javascript_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/perl_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/python_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/ruby_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/rust_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/scala_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/swift_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/query_tool_languages/typescript_toolkit.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/scip_indexer.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/scip_pb2.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/system.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/tree_sitter_parser.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/utils/debug_log.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/utils/path_ignore.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/utils/repo_path.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/utils/tree_sitter_manager.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/utils/visualize_graph.py +0 -0
- {codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/viz/server.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "codegraphcontext-rust"
|
|
7
|
-
version = "0.9.
|
|
7
|
+
version = "0.9.14"
|
|
8
8
|
description = "Rust-accelerated code indexing engine for CodeGraphContext. 19 languages, 5-18x faster parsing via tree-sitter + rayon."
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Shashank Shekhar Singh", email = "shashankshekharsingh1205@gmail.com" },
|
|
@@ -73,6 +73,7 @@ pub fn parse_file(
|
|
|
73
73
|
pub fn parse_files_parallel(
|
|
74
74
|
file_specs: &[(String, String, bool)], // (path, lang, is_dependency)
|
|
75
75
|
num_threads: Option<usize>,
|
|
76
|
+
index_source: bool,
|
|
76
77
|
) -> Vec<ParseResult> {
|
|
77
78
|
use rayon::prelude::*;
|
|
78
79
|
|
|
@@ -84,7 +85,7 @@ pub fn parse_files_parallel(
|
|
|
84
85
|
pool.install(|| {
|
|
85
86
|
file_specs
|
|
86
87
|
.par_iter()
|
|
87
|
-
.map(|(path, lang, is_dep)| parse_file(path, lang, *is_dep,
|
|
88
|
+
.map(|(path, lang, is_dep)| parse_file(path, lang, *is_dep, index_source))
|
|
88
89
|
.collect()
|
|
89
90
|
})
|
|
90
91
|
}
|
|
@@ -94,6 +95,7 @@ pub fn parse_files_parallel(
|
|
|
94
95
|
pub fn parse_and_prescan_parallel(
|
|
95
96
|
file_specs: &[(String, String, bool)], // (path, lang, is_dependency)
|
|
96
97
|
num_threads: Option<usize>,
|
|
98
|
+
index_source: bool,
|
|
97
99
|
) -> (Vec<ParseResult>, HashMap<String, Vec<String>>) {
|
|
98
100
|
use rayon::prelude::*;
|
|
99
101
|
|
|
@@ -107,7 +109,7 @@ pub fn parse_and_prescan_parallel(
|
|
|
107
109
|
file_specs
|
|
108
110
|
.par_iter()
|
|
109
111
|
.map(|(path, lang, is_dep)| {
|
|
110
|
-
let result = parse_file(path, lang, *is_dep,
|
|
112
|
+
let result = parse_file(path, lang, *is_dep, index_source);
|
|
111
113
|
|
|
112
114
|
// Extract pre-scan names from parsed data
|
|
113
115
|
let resolved = fs::canonicalize(Path::new(path))
|
|
@@ -27,13 +27,14 @@ fn parse_file(
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
#[pyfunction]
|
|
30
|
-
#[pyo3(signature = (file_specs, num_threads=None))]
|
|
30
|
+
#[pyo3(signature = (file_specs, num_threads=None, index_source=false))]
|
|
31
31
|
fn parse_files_parallel(
|
|
32
32
|
py: Python<'_>,
|
|
33
33
|
file_specs: Vec<(String, String, bool)>,
|
|
34
34
|
num_threads: Option<usize>,
|
|
35
|
+
index_source: bool,
|
|
35
36
|
) -> PyResult<Vec<PyObject>> {
|
|
36
|
-
let results = py.allow_threads(|| parser::parse_files_parallel(&file_specs, num_threads));
|
|
37
|
+
let results = py.allow_threads(|| parser::parse_files_parallel(&file_specs, num_threads, index_source));
|
|
37
38
|
results
|
|
38
39
|
.into_iter()
|
|
39
40
|
.map(|r| conversions::parse_result_to_py(py, r))
|
|
@@ -54,14 +55,15 @@ fn pre_scan_for_imports(py: Python<'_>, file_specs: Vec<(String, String)>) -> Py
|
|
|
54
55
|
/// Parse files in parallel AND build imports_map in one pass.
|
|
55
56
|
/// Returns (list_of_file_data_dicts, imports_map_dict).
|
|
56
57
|
#[pyfunction]
|
|
57
|
-
#[pyo3(signature = (file_specs, num_threads=None))]
|
|
58
|
+
#[pyo3(signature = (file_specs, num_threads=None, index_source=false))]
|
|
58
59
|
fn parse_and_prescan(
|
|
59
60
|
py: Python<'_>,
|
|
60
61
|
file_specs: Vec<(String, String, bool)>,
|
|
61
62
|
num_threads: Option<usize>,
|
|
63
|
+
index_source: bool,
|
|
62
64
|
) -> PyResult<PyObject> {
|
|
63
65
|
let (results, imports_map) = py.allow_threads(|| {
|
|
64
|
-
parser::parse_and_prescan_parallel(&file_specs, num_threads)
|
|
66
|
+
parser::parse_and_prescan_parallel(&file_specs, num_threads, index_source)
|
|
65
67
|
});
|
|
66
68
|
|
|
67
69
|
let file_data_list: Vec<PyObject> = results
|
|
@@ -43,12 +43,13 @@ def parse_file(path, lang, is_dependency=False, index_source=False,
|
|
|
43
43
|
return parser_wrapper.parse(path, is_dependency, index_source=index_source, **kwargs)
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
def parse_files_parallel(file_specs, num_threads=None):
|
|
46
|
+
def parse_files_parallel(file_specs, num_threads=None, index_source=False):
|
|
47
47
|
"""Parse multiple files in parallel using Rust.
|
|
48
48
|
|
|
49
49
|
Args:
|
|
50
50
|
file_specs: list of (path_str, lang, is_dependency) tuples
|
|
51
51
|
num_threads: optional thread count (0 = auto)
|
|
52
|
+
index_source: if True, extract docstrings and source bodies
|
|
52
53
|
|
|
53
54
|
Returns:
|
|
54
55
|
list of file_data dicts
|
|
@@ -59,7 +60,7 @@ def parse_files_parallel(file_specs, num_threads=None):
|
|
|
59
60
|
if not RUST_AVAILABLE:
|
|
60
61
|
raise RuntimeError("Rust engine required for parallel parsing")
|
|
61
62
|
|
|
62
|
-
return _rust_parse_files_parallel(file_specs, num_threads)
|
|
63
|
+
return _rust_parse_files_parallel(file_specs, num_threads, index_source)
|
|
63
64
|
|
|
64
65
|
|
|
65
66
|
def pre_scan_for_imports(file_specs):
|
|
@@ -84,7 +84,7 @@ async def run_tree_sitter_index_async(
|
|
|
84
84
|
info_logger(f"Rust combined parse+prescan for {len(rust_files)} files...")
|
|
85
85
|
t_parse = time.time()
|
|
86
86
|
specs = [(str(f), lang, is_dependency) for f, lang in rust_files]
|
|
87
|
-
rust_results, imports_map = _rust_parse_and_prescan(specs)
|
|
87
|
+
rust_results, imports_map = _rust_parse_and_prescan(specs, index_source=True)
|
|
88
88
|
info_logger(f"Rust parse+prescan done in {time.time() - t_parse:.1f}s "
|
|
89
89
|
f"({len(imports_map)} symbols)")
|
|
90
90
|
|
|
@@ -264,9 +264,10 @@ class PythonTreeSitterParser:
|
|
|
264
264
|
"is_dependency": False,
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
# Always extract docstring (lightweight, no index_source needed)
|
|
268
|
+
func_data["docstring"] = self._get_docstring(body_node)
|
|
267
269
|
if self.index_source:
|
|
268
270
|
func_data["source"] = self._get_node_text(func_node)
|
|
269
|
-
func_data["docstring"] = self._get_docstring(body_node)
|
|
270
271
|
|
|
271
272
|
functions.append(func_data)
|
|
272
273
|
return functions
|
|
@@ -302,9 +303,10 @@ class PythonTreeSitterParser:
|
|
|
302
303
|
"lang": self.language_name,
|
|
303
304
|
"is_dependency": False,
|
|
304
305
|
}
|
|
306
|
+
# Always extract docstring (lightweight, no index_source needed)
|
|
307
|
+
class_data["docstring"] = self._get_docstring(body_node)
|
|
305
308
|
if self.index_source:
|
|
306
309
|
class_data["source"] = self._get_node_text(class_node)
|
|
307
|
-
class_data["docstring"] = self._get_docstring(body_node)
|
|
308
310
|
|
|
309
311
|
classes.append(class_data)
|
|
310
312
|
return classes
|
|
@@ -141,6 +141,36 @@ class TypescriptTreeSitterParser:
|
|
|
141
141
|
def _get_docstring(self, body_node):
|
|
142
142
|
return None
|
|
143
143
|
|
|
144
|
+
def _get_jsdoc(self, node) -> str | None:
|
|
145
|
+
"""Extract JSDoc /** ... */ comment immediately preceding node."""
|
|
146
|
+
parent = node.parent
|
|
147
|
+
if not parent:
|
|
148
|
+
return None
|
|
149
|
+
siblings = list(parent.children)
|
|
150
|
+
try:
|
|
151
|
+
idx = siblings.index(node)
|
|
152
|
+
except ValueError:
|
|
153
|
+
return None
|
|
154
|
+
for i in range(idx - 1, -1, -1):
|
|
155
|
+
sib = siblings[i]
|
|
156
|
+
if sib.type == "comment":
|
|
157
|
+
raw = self._get_node_text(sib)
|
|
158
|
+
if raw.startswith("/**"):
|
|
159
|
+
lines = []
|
|
160
|
+
for line in raw.splitlines():
|
|
161
|
+
line = line.strip().lstrip("/*").strip()
|
|
162
|
+
if line.startswith("@"):
|
|
163
|
+
break
|
|
164
|
+
if line:
|
|
165
|
+
lines.append(line)
|
|
166
|
+
result = " ".join(lines).strip()
|
|
167
|
+
return result[:500] if result else None
|
|
168
|
+
elif raw.startswith("//"):
|
|
169
|
+
return raw.lstrip("/").strip()[:500]
|
|
170
|
+
elif sib.type not in ("\n", "newline"):
|
|
171
|
+
break
|
|
172
|
+
return None
|
|
173
|
+
|
|
144
174
|
def parse(self, path: Path, is_dependency: bool = False, index_source: bool = False) -> Dict:
|
|
145
175
|
self.index_source = index_source
|
|
146
176
|
with open(path, "r", encoding="utf-8") as f:
|
|
@@ -233,7 +263,6 @@ class TypescriptTreeSitterParser:
|
|
|
233
263
|
args = [self._get_node_text(data['single_param'])]
|
|
234
264
|
context, context_type, _ = self._get_parent_context(func_node)
|
|
235
265
|
class_context = context if context_type == 'class_declaration' else None
|
|
236
|
-
docstring = None
|
|
237
266
|
func_data = {
|
|
238
267
|
"name": name,
|
|
239
268
|
"line_number": func_node.start_point[0] + 1,
|
|
@@ -246,11 +275,12 @@ class TypescriptTreeSitterParser:
|
|
|
246
275
|
"decorators": [],
|
|
247
276
|
"lang": self.language_name,
|
|
248
277
|
"is_dependency": False,
|
|
278
|
+
# Always extract JSDoc (lightweight, no index_source needed)
|
|
279
|
+
"docstring": self._get_jsdoc(func_node),
|
|
249
280
|
}
|
|
250
281
|
|
|
251
282
|
if self.index_source:
|
|
252
283
|
func_data["source"] = self._get_node_text(func_node)
|
|
253
|
-
func_data["docstring"] = docstring
|
|
254
284
|
functions.append(func_data)
|
|
255
285
|
return functions
|
|
256
286
|
|
|
@@ -317,9 +347,10 @@ class TypescriptTreeSitterParser:
|
|
|
317
347
|
"lang": self.language_name,
|
|
318
348
|
"is_dependency": False,
|
|
319
349
|
}
|
|
350
|
+
# Always extract JSDoc (lightweight, no index_source needed)
|
|
351
|
+
class_data["docstring"] = self._get_jsdoc(class_node)
|
|
320
352
|
if self.index_source:
|
|
321
353
|
class_data["source"] = self._get_node_text(class_node)
|
|
322
|
-
class_data["docstring"] = self._get_docstring(class_node)
|
|
323
354
|
classes.append(class_data)
|
|
324
355
|
return classes
|
|
325
356
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/c_lang.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/csharp.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/dart.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/elixir.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/haskell.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/java.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/javascript.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/kotlin.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/perl.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/python.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/ruby.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/rust_lang.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/scala.rs
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/swift.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/lang/typescript.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/resolution/calls.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-core/src/resolution/mod.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/cgc-python/src/conversions.rs
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/rust/tree-sitter-perl-vendor/build.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/__init__.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/__main__.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/main.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/cli/visualizer.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/cgcignore.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/database.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/jobs.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/core/watcher.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/prompts.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/server.py
RENAMED
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/scip_pb2.py
RENAMED
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/tools/system.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegraphcontext_rust-0.9.12 → codegraphcontext_rust-0.9.14}/src/codegraphcontext/viz/server.py
RENAMED
|
File without changes
|