fix(mock): correct sprint ticket format and add keyword detection

- description/status/assigned_to fields now match parse_json_tickets expectations
- Sprint planning branch also detects 'generate the implementation tickets'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 14:21:21 -05:00
parent f7e417b3df
commit 0593b289e5

View File

@@ -42,10 +42,10 @@ def main() -> None:
}), flush=True) }), flush=True)
return return
elif 'PATH: Sprint Planning' in prompt: elif 'PATH: Sprint Planning' in prompt or 'generate the implementation tickets' in prompt:
mock_response = [ mock_response = [
{"id": "mock-ticket-1", "type": "Ticket", "goal": "Mock Ticket 1", "target_file": "file1.py", "depends_on": [], "context_requirements": "req 1"}, {"id": "mock-ticket-1", "description": "Mock Ticket 1", "status": "todo", "assigned_to": "worker", "depends_on": []},
{"id": "mock-ticket-2", "type": "Ticket", "goal": "Mock Ticket 2", "target_file": "file2.py", "depends_on": ["mock-ticket-1"], "context_requirements": "req 2"} {"id": "mock-ticket-2", "description": "Mock Ticket 2", "status": "todo", "assigned_to": "worker", "depends_on": ["mock-ticket-1"]}
] ]
print(json.dumps({ print(json.dumps({
"type": "message", "type": "message",