semver-analyzer-llm 0.0.1

LLM-based behavioral analysis for the semver-analyzer
Documentation

LLM-based behavioral analysis for the semver-analyzer.

This crate implements the BehaviorAnalyzer trait from semver-analyzer-core. It provides:

  1. Agent-agnostic LLM invocation via --llm-command (goose, opencode, etc.)
  2. Template-constrained spec inference — prompts that produce FunctionSpec JSON
  3. Tier 1 structural spec comparison — mechanical comparison without LLM
  4. Tier 2 LLM fallback — for ambiguous notes diffs and fuzzy matches

Usage

use semver_analyzer_llm::LlmBehaviorAnalyzer;

let analyzer = LlmBehaviorAnalyzer::new("goose run --no-session -q -t");
let spec = analyzer.infer_spec(&function_body, &signature)?;