Expand description
Programmatic runtime entry points that avoid depending on fallow-cli.
Re-exports§
pub use trace::run_trace_clone;pub use trace::run_trace_dependency;pub use trace::run_trace_error;pub use trace::run_trace_export;pub use trace::run_trace_file;pub use trace::run_trace_import_path;
Structs§
- Architecture
Programmatic Output - Typed programmatic
fallow architectureoutput before JSON serialization. - Audit
Programmatic KeySnapshot - Stable audit key snapshot used to classify introduced vs inherited findings.
- Audit
Programmatic Output - Typed programmatic audit output before JSON serialization.
- Boundary
Violations Programmatic Output - Typed programmatic boundary-family output before JSON serialization.
- Circular
Dependencies Programmatic Output - Typed programmatic circular-dependency output before JSON serialization.
- Combined
Programmatic Output - Typed programmatic combined output before JSON serialization.
- Dead
Code Programmatic Output - Typed programmatic dead-code output before JSON serialization.
- Decision
Surface Programmatic Output - Typed programmatic decision-surface output before JSON serialization.
- Duplication
Programmatic Output - Typed programmatic duplication output before JSON serialization.
- Engine
Health Runner - Default health runner backed directly by
fallow-engine. - Feature
Flags Programmatic Output - Typed programmatic feature-flag output before JSON serialization.
- Health
Json Report Input - Inputs for serializing health JSON output through the API boundary.
- Health
Programmatic Output - Typed programmatic health / complexity output before JSON serialization.
- Programmatic
Health Analysis - API-owned health analysis payload returned by programmatic runners.
- Programmatic
Health Next Step Facts - Runtime probes used by programmatic health output assembly.
- Programmatic
Health Run - Health runner output shared by API, NAPI, and alternate runners.
- Trace
Clone Programmatic Output - Typed programmatic duplicate-code trace output before JSON serialization.
- Trace
Dependency Programmatic Output - Typed programmatic dependency-trace output before JSON serialization.
- Trace
Error Programmatic Output - Typed programmatic stack-trace resolution before JSON serialization.
- Trace
Export Programmatic Output - Typed programmatic export-trace output before JSON serialization. Carries either an export trace or (fallback) a class / enum / store member trace.
- Trace
File Programmatic Output - Typed programmatic file-trace output before JSON serialization.
- Trace
Import Path Programmatic Output - Typed programmatic import-path-trace output before JSON serialization.
Enums§
- Trace
Export Target Output - The
trace_exporttarget: either a top-level export or (fallback) a class / enum / store member declared on one. Serialized untagged so the export shape stays byte-identical to the historical contract and the member shape matches the CLI’s member trace; consumers distinguish by the presence ofexport_name(export) vsmember_name/owner_export(member).
Constants§
- AUDIT_
CONFIG_ BASELINE_ UNSUPPORTED - Error code of
run_auditwhen the project config sets anauditbaseline key, which the typed audit cannot apply. Callers that can runfallow auditinstead, such as the MCPaudittool, fall back on it. - TYPE_
AWARE_ CONFIG_ UNSUPPORTED - Error code of the typed runners when the environment or the project config
turns on type-aware analysis that the caller did not request through
crate::TypeAwareOptions. Callers that can run thefallowCLI instead, such as the MCP tools, fall back on it.
Traits§
- Programmatic
Health Runner - Runner boundary for programmatic health.
Functions§
- inspect_
similar_ code - Validate and inspect one exact candidate snapshot without rerunning global provider retrieval or ranking.
- load_
health_ config - Load the
healthsection of the project config for adapters that layer config-sourced coverage inputs before building options (the MCP typed route; seecrate::coverage). The root and config path resolve exactly as they do for the analysis itself. ReturnsNonewhen the project has no config file. The function parses the config file and does not validate the rest of the config, so the health analysis reports such errors. - parse_
similar_ code_ candidate_ snapshot - Validate one inline bounded candidate snapshot.
- plan_
mutation - Builds the static mutation plan. It runs no user code.
- replay_
mutation - Calls one export of a source file with one input on the original and on one mutant, three times each, in turns, and gives the verdict. It runs project code: the module of the file and each module that it imports.
- review_
similar_ code - Join immutable candidate JSON with a separately authored verdict document.
- run_
architecture - Run the analysis of
fallow architectureand return typed API output before JSON: import cycles, boundary violations and rule-pack policy violations. - run_
audit - Run changed-code audit through typed programmatic runners.
- run_
boundary_ violations - Run boundary-family analysis and return typed API output before JSON.
- run_
circular_ dependencies - Run circular-dependency analysis and return typed API output before JSON.
- run_
combined - Run bare combined analysis through one programmatic analysis session.
- run_
complexity_ with_ runner - Run programmatic health / complexity and return typed API output.
- run_
dead_ code - Run dead-code analysis and return typed API output before serialization.
- run_
dead_ code_ with_ baseline - Run dead-code analysis and hide the findings of a saved dead-code baseline.
- run_
decision_ surface - Run changed-code decision-surface analysis through the typed programmatic API.
- run_
duplication - Run duplication analysis and return typed API output before serialization.
- run_
feature_ flags - Run feature-flag analysis and return typed API output before JSON.
- run_
health - Run programmatic health / complexity through the engine-backed runner.
- run_
health_ with_ runner - Alias for
run_complexity_with_runnerwith a product-oriented name. - run_
mutation - Plans the mutants, runs the project tests against each planned mutant, and reports the result.
- run_
mutation_ with_ progress run_mutationthat sends aMutationProgressevent at the start of each run phase and after each finished mutant.- run_
similar_ code - Run opt-in semantic similar-code discovery through the verified local provider.
- run_
trace_ clone - Trace duplicate-code groups by location or stable fingerprint.
- run_
trace_ dependency - Trace where a dependency is used.
- run_
trace_ error - Resolve a runtime stack trace’s frames against the project graph.
- run_
trace_ export - Trace why an export is considered used or unused.
- run_
trace_ file - Trace all graph edges for a file.
- run_
trace_ import_ path - Trace the shortest import path between two modules.
- select_
similar_ code_ candidate_ snapshot - Select one bounded candidate snapshot from raw discovery JSON.
- serialize_
health_ report_ json - Serialize a health / complexity report into the stable JSON output contract.
Type Aliases§
- Architecture
Output - Concrete
fallow architectureoutput contract returned by typed runs. - Boundary
Violations Output - Concrete boundary-family output contract returned by typed runs.
- Circular
Dependencies Output - Concrete circular-dependency output contract returned by typed runs.
- Dead
Code Output - Concrete dead-code output contract returned by typed programmatic runs.
- Duplication
Output - Concrete duplication output contract returned by typed programmatic runs.
- Feature
Flags Output - Concrete feature-flag output contract returned by typed programmatic runs.
- Trace
Class Member Output - Concrete class / enum / store member trace output (the
trace_exportfallback when the name is a member rather than a top-level export). See issue #1744. - Trace
Clone Output - Concrete duplicate-code trace output returned by typed programmatic runs.
- Trace
Dependency Output - Concrete dependency trace output returned by typed programmatic runs.
- Trace
Error Output - Concrete stack-trace resolution returned by typed programmatic runs.
- Trace
Export Output - Concrete export trace output returned by typed programmatic runs.
- Trace
File Output - Concrete file trace output returned by typed programmatic runs.
- Trace
Import Path Output - Concrete import-path trace output returned by typed programmatic runs.