Merge pull request #327 from casiusss/fix/backlog-plan-json-format

fix: restore correct JSON format for backlog plan prompt
This commit is contained in:
Web Dev Cody
2025-12-30 10:05:56 -05:00
committed by GitHub

View File

@@ -331,40 +331,44 @@ Your task is to analyze the request and produce a structured JSON plan with:
5. Any dependency updates needed (removed dependencies due to deletions, new dependencies for new features) 5. Any dependency updates needed (removed dependencies due to deletions, new dependencies for new features)
Respond with ONLY a JSON object in this exact format: Respond with ONLY a JSON object in this exact format:
\`\`\`json
{ {
"plan": { "changes": [
"add": [
{ {
"title": "string", "type": "add",
"description": "string", "feature": {
"title": "Feature title",
"description": "Feature description",
"category": "feature" | "bug" | "enhancement" | "refactor", "category": "feature" | "bug" | "enhancement" | "refactor",
"dependencies": ["featureId1", "featureId2"] "dependencies": ["existing-feature-id"],
} "priority": 1
], },
"update": [ "reason": "Why this feature should be added"
},
{ {
"featureId": "string", "type": "update",
"updates": { "featureId": "existing-feature-id",
"title"?: "string", "feature": {
"description"?: "string", "title": "Updated title"
"category"?: "feature" | "bug" | "enhancement" | "refactor", },
"priority"?: number, "reason": "Why this feature should be updated"
"dependencies"?: ["featureId1"] },
} {
"type": "delete",
"featureId": "feature-id-to-delete",
"reason": "Why this feature should be deleted"
} }
], ],
"delete": ["featureId1", "featureId2"], "summary": "Brief overview of all proposed changes",
"summary": "Brief summary of all changes",
"dependencyUpdates": [ "dependencyUpdates": [
{ {
"featureId": "string", "featureId": "feature-that-depended-on-deleted",
"action": "remove_dependency" | "add_dependency", "removedDependencies": ["deleted-feature-id"],
"dependencyId": "string", "addedDependencies": []
"reason": "string"
} }
] ]
} }
} \`\`\`
Important rules: Important rules:
- Only include fields that need to change in updates - Only include fields that need to change in updates