"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FeaturePlannerAgent = void 0;
// FeaturePlannerAgent: Given a clarified feature request and context, propose todos and context/roadmap updates.
class FeaturePlannerAgent {
    async planFeature(clarifiedRequest, context) {
        // Example: Decompose clarified request into todos and context updates
        // (In real implementation, use deterministic logic, not LLM)
        const summary = `Plan for: ${clarifiedRequest.title || clarifiedRequest}`;
        const todos = clarifiedRequest.todos || [
            `Design: ${clarifiedRequest.title || clarifiedRequest}`,
            `Implement: ${clarifiedRequest.title || clarifiedRequest}`,
            `Test: ${clarifiedRequest.title || clarifiedRequest}`,
            `Document: ${clarifiedRequest.title || clarifiedRequest}`
        ];
        // Example: Add to context.features
        const contextUpdates = {
            features: [
                ...(context.features || []),
                {
                    id: `feature-${Date.now()}`,
                    name: clarifiedRequest.title || clarifiedRequest,
                    description: clarifiedRequest.description || clarifiedRequest,
                    priority: "medium",
                    userValue: clarifiedRequest.userValue || "",
                    acceptanceCriteria: clarifiedRequest.acceptanceCriteria || [],
                    dependencies: clarifiedRequest.dependencies || []
                }
            ]
        };
        return { summary, todos, contextUpdates };
    }
}
exports.FeaturePlannerAgent = FeaturePlannerAgent;
//# sourceMappingURL=FeaturePlannerAgent.js.map