"""Git Helper Plugin - Git status, log, and diff summary tools"""


def git_status_summary() -> dict:
    """Get a summary of git status."""
    return {"status": "ok", "tool": "git_status_summary", "result": "Git status summary"}


def git_log_summary(limit: int = 10) -> dict:
    """Get a summary of recent git commits."""
    return {"status": "ok", "tool": "git_log_summary", "result": f"Git log summary (limit={limit})"}


def git_diff_summary(ref1: str = "HEAD", ref2: str = "HEAD~1") -> dict:
    """Get a summary of changes between two refs."""
    return {
        "status": "ok",
        "tool": "git_diff_summary",
        "result": f"Git diff summary ({ref1}..{ref2})",
    }


tools = [git_status_summary, git_log_summary, git_diff_summary]
