Follow-ups on the #53969 salvage: - hermes_cli/side_question.py: shared compose_side_prompt() used by all three surfaces; treats the parent history as read-only by construction. - gateway: /side now uses the shared composer and registers its task in _background_tasks with a done-callback (same lifecycle as /background, addressing the sweeper review note); dropped the unused _SIDE_BOUNDARY_PROMPT and the dead /sidereturn no-op command (with its /return and /closeside alias squatting). - CLI: /side snapshots self.conversation_history into a side prompt and reuses the /background daemon-thread runner (new prompt_override / display_prompt / task_label parameters); dispatch wired in cli.py. - TUI: new prompt.side RPC (history snapshot under history_lock, throwaway AIAgent, background.complete delivery) + /side slash command in ui-tui. - No /btw alias: /btw is a long-standing alias of /background (hermes_cli/commands.py) — /side ships alias-free and a registry test pins /btw -> background. - tests: tests/gateway/test_side_command.py (19) covering the byte-identical main-history invariant, empty-history, no-session-entry, task lifecycle tracking, prompt composition, and registry; tests/cli/test_cli_side_command.py (7) covering the CLI surface and dispatch. - docs: /side rows in the CLI and messaging tables of website/docs/reference/slash-commands.md + cross-surface list. |
||
|---|---|---|
| .. | ||
| docs | ||
| i18n/zh-Hans/docusaurus-plugin-content-docs/current | ||
| scripts | ||
| src | ||
| static | ||
| .gitignore | ||
| README.md | ||
| docusaurus.config.ts | ||
| package-lock.json | ||
| package.json | ||
| sidebars.ts | ||
| tsconfig.json | ||
README.md
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.