weavatrix-git 0.3.1

Fast, bounded, evidence-carrying Git reader with an optional read-only MCP server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ErrorActionPreference = "Stop"
$extensions = @(".rs", ".md", ".toml", ".yml", ".yaml", ".ps1")
$failed = @()

git ls-files | ForEach-Object {
    if ($extensions -contains [IO.Path]::GetExtension($_)) {
        $count = (Get-Content -LiteralPath $_).Count
        if ($count -gt 300) {
            $failed += "$_ ($count lines)"
        }
    }
}

if ($failed.Count -gt 0) {
    throw "Files exceed 300 lines: $($failed -join ', ')"
}