This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # bd-health: composite beads health check | |
| # Covers: infrastructure (bd doctor) + content quality (bd lint) + DAG structure (bd swarm validate) | |
| # Usage: bash .beads/bd-health.sh | |
| # Exit code: 0 = clean, 1 = errors found (cycles or doctor errors), warnings do not fail | |
| set -euo pipefail | |
| # Always run from the repo root so bd resolves .beads/ correctly | |
| cd "$(git -C "$(dirname "$0")" rev-parse --show-toplevel)" |