f271ba09b0
Review follow-up (Enough1122) on the salvaged #91272: the original list_context_file_sources() hand-mirrored the priority ladder inside build_context_files_prompt, so the two would drift the moment the builder gained a context type or changed precedence — misreporting what the prompt holds is worse than not showing it. Now prompt_builder exposes one candidate finder per context type (_CONTEXT_FILE_CANDIDATES → discover_context_files) and BOTH the loaders and the manifest walk it. The manifest lives in the new sibling agent/context_file_sources.py (not appended to the facade) and: - reports empty / unreadable files truthfully instead of "✓ 0 tokens", - mirrors the install-tree guard ("suppressed") so a Desktop session that fell back into the Hermes tree sees why nothing loaded, - lists every .cursor/rules/*.mdc as loaded, matching the builder which concatenates all of them, - measures truncation on the rendered "## label" section like the builder. The block now renders on every surface that shows the /context category table: CLI/TUI (hermes_cli/cli_info_mixin.py) and the messaging gateway (gateway/slash_commands_status.py). The Desktop popover consumes the raw session.context_breakdown payload (no text table) and is left as-is. Tests trimmed to the two invariants: manifest/prompt parity across every context type at once, and truncated/suppressed follow the builder.
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.