Highlights

docmd v0.9.2 brings major enhancements to @docmd/plugin-ai powered by docmd-assistant v0.1.11, featuring deterministic multi-turn tool execution, context-grounded response synthesis, a redesigned code block UI with separate language headers, and stream-parsing resilience for relay endpoints.

AI Assistant Plugin Enhancements (@docmd/plugin-ai)

  • Multi-Turn Tool Execution Loop Stabilization: Upgraded to docmd-assistant v0.1.11. The assistant engine now deterministically preserves user context and query intent across multi-turn autonomous tool calls (e.g. search_documentation, get_site_structure), ensuring the final synthesis turn is grounded strictly on retrieved facts with clickable markdown links.
  • Modern Code Block UI: Redesigned code block rendering inside the AI chat interface:
    • Code snippets are cleanly encapsulated within a .docmd-ai-code-wrap container.
    • An isolated language header bar (.docmd-ai-code-header > .docmd-ai-code-lang) displays the programming language badge (e.g. bash, typescript, json) without contaminating the command or text inside <pre><code>.
  • Markdown Formatter & Paragraph Wrapping Fixes: Fixed an issue where code block placeholders in the assistant markdown formatter were treated as inline text, eliminating stray <p> and <br/> tags around code blocks and lists.
  • HTTP Stream & JSON Fallback Resiliency: The assistant client now transparently handles both Server-Sent Events (text/event-stream) and non-streaming JSON responses from relay backends, preventing “No response returned” errors on proxy or serverless deployments.
  • TypeScript Type Definitions: Corrected implicit any parameter types and hook signatures across @docmd/plugin-ai.

Global Documentation Parity

  • Multilingual Synchronisation: Updated all release notes and assistant guides 1:1 across English (en), German (de), Spanish (es), and Chinese (zh).