mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 19:47:38 +01:00
New agent_ready/ package (dist and live-url modes, 100% branch coverage) checks robots, sitemap, llms.txt, ai-catalog, 404, no-JS text, markdown mirrors and JSON-LD. repo_contract gains web-repo detection and installs the agent-ready pre-commit hook, CI workflow and check_agent_ready.sh shim; scripts/check_agent_ready.sh is the shared entry point. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBScELfMUiieK9ManFbS3Y
11 lines
406 B
Bash
Executable File
11 lines
406 B
Bash
Executable File
#!/bin/bash
|
|
# Thin wrapper: run the AgentReady checker from any cwd.
|
|
# check.sh dist <build-dir> [--act]
|
|
# check.sh url <base-url> [--act]
|
|
# Exit codes: 0 all pass, 1 any FAIL, 2 usage error, 3 network undeterminable.
|
|
set -euo pipefail
|
|
|
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
readonly HERE
|
|
PYTHONPATH="$(dirname "$HERE")${PYTHONPATH:+:$PYTHONPATH}" exec python3 -m agent_ready.check "$@"
|