{"agent":"claude","input":"Add Mermaid diagrams to this Docusaurus 2 site. Read package.json, package-lock.json, .node-version, docusaurus.config.js, sidebars.js, src/css/custom.css, netlify.toml and the docs directory first, and find which Docusaurus version the lockfile actually resolves. Mermaid needs Docusaurus 2.2.0 or later, so if the site is below that, update @docusaurus/core, @docusaurus/preset-classic and every other @docusaurus package to the same latest 2.x release together with @docusaurus/theme-mermaid at that exact version. Set markdown.mermaid to true, add the theme to themes, and set themeConfig.mermaid.theme for light and dark modes. Add two or three diagrams where a page already describes a structure or a sequence in prose (the package family in the intro, the query priority order), keeping the prose in place. Run npm run build and npm run format until both are clean, check the diagrams in both colour modes, and open a pull request that explains the version move and lists each diagram with the page it is on.","resources":[{"url":"https://github.com/your-org/your-app"}]}