ilink-hub 0.3.0

iLink-compatible multiplexer hub for WeChat ClawBot — route one WeChat account to multiple AI agent backends
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Run pre-commit checks on staged Rust changes.
# Delegates to scripts/check.sh so behavior stays in sync with what CI runs.

# Skip when no Rust files are staged (speed, and avoids spurious failures)
if ! git diff --cached --name-only | grep -q '\.rs$'; then
    exit 0
fi

repo_root="$(git rev-parse --show-toplevel)"
"$repo_root/scripts/check.sh" || {
    echo ""
    echo "❌ pre-commit checks failed."
    echo "   Run \`scripts/check.sh --fix\` to auto-format, then re-stage and commit."
    exit 1
}