/** * update_agent tool implementation for spec-kit * * Updates AI agent context files with technology information * extracted from the current feature's plan.md file. */ import type { AgencyTool, AgencyCoreAPI } from '@generacy-ai/agency'; import type { SpecKitConfig } from '../config.js'; /** * Technology information extracted from plan.md */ interface PlanData { /** Programming language and version */ language?: string; /** Framework and library dependencies */ dependencies?: string; /** Storage/database technologies */ storage?: string; /** Testing frameworks */ testing?: string; /** Type of project */ projectType?: string; } /** * Extract technology information from plan.md content. * * Parses the plan.md file for technology mentions in: * - **Language/Version**: line * - **Primary Dependencies**: line * - **Storage**: line * - **Testing**: line * - **Project Type**: line * * @param planContent - Raw content of plan.md * @returns Extracted technology data */ export declare function extractTechnologies(planContent: string): PlanData; /** * Update agent file content with new technology information. * * Uses HTML comment markers for auto-generated sections: * - ... * - ... * * When markers aren't present, falls back to inserting after section headers: * - ## Active Technologies * - ## Recent Changes * * @param content - Current agent file content * @param data - Extracted technology data * @param featureDir - Feature directory name * @returns Updated content */ export declare function updateAgentContent(content: string, data: PlanData, featureDir: string): string; /** * Create the spec_kit.update_agent tool. * * This tool extracts technology information from a feature's plan.md file * and updates AI agent context files with that information. * * @param config - Plugin configuration * @param _core - Agency core API (unused) * @returns AgencyTool instance */ export declare function createUpdateAgentTool(config: SpecKitConfig, _core: AgencyCoreAPI): AgencyTool; export {}; //# sourceMappingURL=update-agent.d.ts.map