Pipeline.Codebase.QueryEngine (PipelineEx v0.1.1)
View SourceCore query engine for intelligent codebase analysis.
Provides high-level query operations that combine discovery, analysis, and relationship mapping to answer complex questions about code structure and dependencies.
Summary
Functions
Analyze the impact of changes to a file.
Find dependencies for a given file or the entire project.
Find files based on various criteria.
Find functions, classes, and other code constructs.
Find files related to a given file.
Functions
@spec analyze_impact( Pipeline.Codebase.Context.t(), keyword() ) :: %{ directly_affected: [String.t()], potentially_affected: [String.t()], test_files: [String.t()], impact_score: non_neg_integer() }
Analyze the impact of changes to a file.
Config Options
file: File to analyze impact forinclude_tests: Include test files in impact analysismax_depth: Maximum depth for dependency traversal
@spec find_dependencies( Pipeline.Codebase.Context.t(), keyword() ) :: %{ direct: [String.t()], transitive: [String.t()], file_specific: %{required(String.t()) => [String.t()]} }
Find dependencies for a given file or the entire project.
Config Options
for_file: Specific file to analyze dependencies forinclude_transitive: Include transitive dependenciestype: "direct", "transitive", "all"language: Filter by programming language
@spec find_files( Pipeline.Codebase.Context.t(), keyword() ) :: [String.t()]
Find files based on various criteria.
Criteria Options
type: "main", "test", "config", "source"pattern: Glob pattern to matchlanguage: Programming languageextension: File extensioncontains: String that must be in file pathexclude_tests: Boolean to exclude test filesrelated_to: Find files related to given filemodified_since: Date string (ISO format)size_min: Minimum file size in bytessize_max: Maximum file size in bytes
@spec find_functions( Pipeline.Codebase.Context.t(), keyword() ) :: [ %{ name: String.t(), type: String.t(), file: String.t(), line: non_neg_integer() | nil, signature: String.t() | nil } ]
Find functions, classes, and other code constructs.
Config Options
name: Function/class name to search forpattern: Regex pattern to matchtype: "function", "class", "module", "constant"in_file: Specific file to search inin_files: List of files to search inlanguage: Programming language filter