"""Public-site fact drift checks for Kami. The hosted pages, README, and llms.txt intentionally repeat install and product facts in multiple languages. This module keeps those facts tied to the shared registry and public constants so `build.py --check` catches drift before CI. """ from __future__ import annotations import difflib import html import re from collections.abc import Mapping from html.parser import HTMLParser from shared import ( CLAUDE_CODE_INSTALL_COMMANDS, CLAUDE_CODE_MIN_VERSION, CLAUDE_DESKTOP_PACKAGE_URL, CODEX_PLUGIN_INSTALL_COMMANDS, DIAGRAM_TEMPLATES, GENERIC_AGENT_INSTALL_COMMAND, PUBLIC_DOCUMENT_TEMPLATE_KINDS, ROOT, kami_version, public_document_template_count, public_document_template_kinds, ) # Locale pages are hand-maintained forks of index.html. Their DOM skeletons # must stay identical; the only allowed divergence is the language-redirect #