docmd-assistant v0.1.8 introduces dedicated documentation introspection tools (get_site_structure, search_documentation), engine-level concurrency locking, relay tool forwarding, and client-side tool execution handling for custom backend relays.
Key Features & Enhancements
Dedicated Documentation Tools
v0.1.8 standardizes core tools designed specifically for documentation sites:
get_site_structure: Returns the complete site hierarchy, including active and historical documentation versions, supported i18n locales, multi-project workspace topologies, search capabilities, and page navigation trees. This allows the assistant to accurately answer structural and version-related queries without guessing.search_documentation: Provides full-text keyword search and conditional semantic vector search across workspace projects. Automatically filters and ranks hits based on the active documentation version and locale, preventing legacy or alternate-language content from polluting search results.
engine.registerTool({
name: 'get_site_structure',
description: 'Get documentation versions, locales, workspace projects, and navigation trees.',
execute: async () => {
return getSiteMetadata();
}
});
engine.registerTool({
name: 'search_documentation',
description: 'Search documentation pages across projects.',
execute: async ({ query, project }) => {
return await searchIndexes(query, project);
}
});
Engine-Level Concurrency Locking
DocmdAssistantEngine.sendMessage() now includes an internal execution lock (isExecuting). Simultaneous or overlapping message submissions are rejected with a clear error until the current response generation cycle completes, eliminating race conditions.
try {
const res = await engine.sendMessage('Tell me about configuration');
} catch (err) {
// Concurrency collision prevented
}
Relay Tool Forwarding & Execution
When operating in Relay Mode, runRelayTurn now automatically passes registered tool schemas (name, description, parameters) within the relay payload. If the relay returns tool calls, the engine executes the tool client-side and transmits the result back seamlessly.
Professional & Concise Prompt Architecture
The default system prompt and instructions have been optimized for conciseness, professional tone, and minimal emoji usage, ensuring direct and accurate documentation guidance.
Upgrade
npm install docmd-assistant@0.1.8
pnpm add docmd-assistant@0.1.8