Live Config Source Discovery
Never duplicates mirror lists or thresholds inside plugin source. Supports remote endpoint discovery or static local mirror lists, plus strictly non-authoritative degraded diagnostics.
Scheduled resource-distribution monitor for AstrBot that verifies remote config endpoints, manifests, HTTP Range chunks, MD5 checksums, hot-update packages, and TLS expiry with debounced alerting and QQ official acknowledgment.
What AstrBot Resource Monitor Delivers
206 Range slicing, 32-hex MD5 chunk rotation (7-day coverage), hot-package streaming checksums, and TLS <14d/<3d expiry.PublicResolver pins public IPs (blocking loopback/private ranges and trust_env proxies), enforces a 64 MiB fetch cap, sanitizes output via render.safe(), and drives M-of-N alerts + QQ Official /线路 ack.300s fast and 3600s slow async locks plus offline-testable Source and HttpClient interfaces.Explicit Non-Goals & Hard Boundaries
allow_heavy=False and shared cooldowns; bundles zero built-in default endpoints (entry_url or mirrors is mandatory).Implementation alignment note: The embedded diagram depicts high-level topology between AstrBot, the plugin core, SSRF/output guards, and delivery channels. Actual probes implemented in
watch/inspect external distribution configs, manifests, HTTP Range chunks, MD5 hashes, hot-update archives, and TLS expiry — never host CPU or memory telemetry.
# 1. Run offline unit tests (252 total; 5 aiohttp boundary tests skip if aiohttp is absent)
python3 -m unittest discover -s tests -t . -v
# 2. Verify no real endpoints or credentials are committed
python3 tools/check-no-endpoints.py --verboseQuick Navigation by Role & Goal
data/plugins/, configure endpoint or mirrors, and set session UMOs;unknown=True rules, JSON schemas, Source/HttpClient extension points, and SSRF boundaries;repo-docs/README.md in the repository root.