v0.9.5 is live! — Read the latest technical documentation and migration guides.

docmd-assistant v0.1.16 introduces structured Markdown DOM extraction for documentation reading, uncapped context window delivery for rich documentation synthesis, multi-turn cloud logging deduplication, and refined query sanitisation.

Key Features & Enhancements

Structured Markdown Content Extraction

  • Preserved Code Blocks & Formatting: The built-in DOM page reader (read_documentation_page) now parses HTML documents into clean, structured Markdown rather than flattened text. Fenced code blocks with language tags (pre/code), headings (#######), unordered list items (-), and paragraph spacing are preserved intact.
  • Chrome & Drawer Stripping: Automatically removes non-content elements before extraction (nav, aside, header, footer, .toc, .sidebar, .docmd-ai-drawer, and [aria-hidden="true"]), ensuring only authentic documentation text and code reach the LLM.

Uncapped Context Window Delivery (contextWindow)

  • High-Fidelity Document Synthesis: Removed the legacy 3,500-character slicing in read_documentation_page, allowing the assistant to ingest entire reference pages, configuration tables, and code examples.
  • Configurable Context Size: Added contextWindow to AssistantOptions (defaulting to 0 / uncapped context, with fallback to full retrieval delivery), replacing hardcoded character ceilings while allowing token optimisation when needed.

Multi-Turn Relay & Analytics Optimisation

  • Tool Turn Flagging (isToolFollowUp): Follow-up requests within autonomous multi-turn loops now pass isToolFollowUp: true in the execution payload. This enables Cloud relays and downstream analytics engines to distinguish initial visitor queries from intermediate agent tool calls, eliminating redundant query records.
  • Query Sanitisation: Strips trailing search context markers (\n\n[Documentation Search Context...]) from originalUserQuery and eliminates wrapping quotes, preventing orphaned quote artifacts in chat records.

Resolved Issues

  • Duplicate Analytics Logging: Resolved an issue where autonomous tool execution (e.g. searching docs then reading a page) logged intermediate internal turns as repeated visitor queries.
  • Leading Quote Artifact ("): Fixed an issue where regex sanitisation in cloud relay logging left behind an orphaned opening quotation mark.
  • Code Block Flattening: Fixed code snippets losing indentation and line breaks when fetched via read_documentation_page.

Upgrade

npm
pnpm
npm install docmd-assistant@0.1.16
pnpm add docmd-assistant@0.1.16