Ragex. Analysis. Runner
(Ragex v0.14.1)
View Source
Shared analysis runner logic used by both Mix tasks and MCP tools.
Extracts the "run all analyses" pipeline so that:
mix ragex.analyzecan run it locally- The
comprehensive_analyzeMCP tool can run it on the server - Mix tasks can delegate to the running server via MCP without starting a second BEAM VM
Summary
Functions
Analyzes a directory and populates the knowledge graph.
Runs all enabled analyses based on the config.
Types
@type analyze_result() :: %{ files_analyzed: non_neg_integer(), entities_found: non_neg_integer(), errors: list() }
Functions
@spec analyze_directory( String.t(), keyword() ) :: {:ok, analyze_result()} | {:error, term()}
Analyzes a directory and populates the knowledge graph.
Returns {:ok, analyze_result} or {:error, reason}.
Runs all enabled analyses based on the config.
Returns a map of %{analysis_type => result} matching the format
expected by Mix.Tasks.Ragex.Analyze formatters.