mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user