weavatrix-rust 2.16.0

Protocol-independent Rust repository intelligence: typed evidence graphs for impact, architecture, APIs, Git, search, and memory
Documentation
pub(super) fn health_fields(tool: &str) -> Option<&'static [&'static str]> {
    match tool {
        "find_duplicates" => Some(&[
            "min_similarity",
            "min_tokens",
            "mode",
            "include_tests",
            "include_classified",
            "include_boilerplate",
            "include_declarative",
            "include_strings",
            "top_n",
        ]),
        "find_dead_code" => Some(&[
            "path",
            "kinds",
            "min_confidence",
            "include_tests",
            "include_classified",
            "top_n",
        ]),
        "run_audit" => Some(&[
            "category",
            "min_severity",
            "max_findings",
            "include_classified",
            "include_capabilities",
            "base_ref",
            "changed_files",
            "debt",
        ]),
        "coverage_map" => Some(&["top_n", "path"]),
        "hot_path_review" => Some(&[
            "path",
            "top_n",
            "min_score",
            "cyclomatic_threshold",
            "call_threshold",
            "loop_depth_threshold",
            "include_tests",
            "include_classified",
        ]),
        _ => None,
    }
}

pub(super) fn perf_fields(tool: &str) -> Option<&'static [&'static str]> {
    match tool {
        "perf_attribution" => Some(&[
            "revision_column",
            "direction",
            "max_revisions",
            "min_delta_percent",
            "top_n",
            "path",
            "include_tests",
            "include_classified",
        ]),
        _ => None,
    }
}

pub(super) fn occurrence_fields(tool: &str) -> Option<&'static [&'static str]> {
    match tool {
        "inspect_symbol" => Some(&[
            "label",
            "path",
            "line",
            "column",
            "scip_path",
            "precision",
            "max_references",
            "context_lines",
            "timeout_ms",
        ]),
        "go_to_definition" => Some(&["scip_path"]),
        "find_references" => Some(&[
            "label",
            "path",
            "line",
            "column",
            "scip_path",
            "max_results",
            "cursor",
        ]),
        "context_bundle" => Some(&[
            "label",
            "path",
            "line",
            "column",
            "scip_path",
            "precision",
            "max_references",
            "max_related",
            "max_reexports",
            "max_source_files",
            "context_lines",
            "include_classified",
            "timeout_ms",
            "token_budget",
        ]),
        _ => None,
    }
}

pub(super) fn extension_fields(tool: &str) -> Option<&'static [&'static str]> {
    match tool {
        "rebuild_graph" => Some(&["mode", "precision", "scope"]),
        "get_architecture_contract" => Some(&[
            "action",
            "candidate_contract",
            "baseline_mode",
            "confirm_token",
        ]),
        "propose_architecture_exception" => Some(&["expires"]),
        "open_repo" => Some(&["build", "mode", "precision"]),
        "semantic_link" => Some(&["model", "min_similarity", "top_k", "selection"]),
        "vector_search" => Some(&["top_k", "exact"]),
        "n8n_inventory" | "dify_inventory" | "agent_inventory" | "diagram_inventory"
        | "web3_inventory" => Some(&["path", "max_results"]),
        "n8n_trace" | "dify_trace" | "diagram_trace" | "web3_trace" => {
            Some(&["depth", "max_nodes", "cursor"])
        }
        "n8n_context" | "dify_context" | "agent_context" | "diagram_context" | "web3_context" => {
            Some(&["task", "max_related"])
        }
        "web3_impact" => Some(&[
            "path",
            "baseline",
            "candidate",
            "provider",
            "max_results",
            "task",
        ]),
        "agent_trace" => Some(&["max_related"]),
        "agent_change_impact" => Some(&["max_results"]),
        "seo_link_suggestions" => Some(&[
            "model",
            "min_similarity",
            "top_k",
            "selection",
            "allow_cross_language",
        ]),
        _ => None,
    }
}