@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
24 lines • 940 B
TypeScript
import type { ToolManager } from '../tools/tool-manager.js';
import type { CustomCommandLoader } from './loader.js';
/**
* Integrates commands with auto-injection capabilities into the LLM system prompt.
* Replaces the former SkillIntegration class.
*
* Commands that define `triggers` or `tags` in their frontmatter participate
* in relevance scoring: the top matches are automatically appended to the
* system prompt for each user request.
*/
export declare class CommandIntegration {
private loader;
private toolManager;
constructor(loader: CustomCommandLoader, toolManager: ToolManager);
/**
* Enhance the system prompt with relevant auto-injectable commands.
*/
enhanceSystemPrompt(basePrompt: string, request: string): string;
/**
* Format a single command for inclusion in the system prompt.
*/
private formatCommandForPrompt;
}
//# sourceMappingURL=command-integration.d.ts.map