Expand description
Algorithm integration module for Magellan 2.0 graph algorithms.
This module provides integration with Magellan’s executable graph algorithms through a shell-out pattern. It supports:
- Loading pre-computed SymbolSet files from JSON
- Running Magellan algorithms (reachable, dead-code, slice, cycles) and extracting SymbolIds
- Resolving simple symbol names to SymbolIds via
magellan find
The SymbolSet type is the core abstraction for algorithm-based filtering. It represents a collection of SymbolIds (32-char BLAKE3 hashes) that can be used to filter search results.
Structs§
- Algorithm
Options - Algorithm-based filtering options for search
- Symbol
Set - SymbolSet - a collection of SymbolIds for filtering search results.
Enums§
- Symbol
SetStrategy - Strategy for filtering by SymbolSet
Functions§
- apply_
algorithm_ filters - Apply algorithm filters and return SymbolSet for search filtering
- check_
magellan_ available - Check if Magellan CLI is available and at the correct version.
- create_
symbol_ set_ temp_ table - Create temporary table for large SymbolSet filtering
- parse_
condense_ output - Parse magellan condense output and extract SCC membership.
- parse_
paths_ output - Parse magellan paths output and extract execution path symbols.
- parse_
symbol_ set_ file - Parse a SymbolSet from a JSON file and validate its format.
- resolve_
fqn_ to_ symbol_ id - Resolve a simple symbol name to its SymbolId using
magellan find. - run_
magellan_ algorithm - Run a Magellan algorithm and extract SymbolIds from its JSON output.
- symbol_
set_ filter_ strategy - Get the appropriate filtering strategy for a SymbolSet
Type Aliases§
- Algorithm
Filter Result - Result type for algorithm filtering operations.