checkpoint: this is a mess... need to define stricter DSL or system for how the AI devices sims and hookup api for tests.
This commit is contained in:
24
ai_client.py
24
ai_client.py
@@ -1645,30 +1645,6 @@ def send(
|
||||
pre_tool_callback : Optional callback (payload: str) -> bool called before tool execution
|
||||
qa_callback : Optional callback (stderr: str) -> str called for Tier 4 error analysis
|
||||
"""
|
||||
# --- START MOCK LOGIC ---
|
||||
if _model == 'mock':
|
||||
import json
|
||||
keyword = "unknown"
|
||||
if 'Epic Initialization' in _custom_system_prompt:
|
||||
keyword = "Epic Initialization"
|
||||
mock_response_content = [
|
||||
{"id": "mock-track-1", "type": "Track", "module": "core", "persona": "Tech Lead", "severity": "Medium", "goal": "Mock Goal 1", "acceptance_criteria": ["criteria 1"], "title": "Mock Goal 1"},
|
||||
{"id": "mock-track-2", "type": "Track", "module": "ui", "persona": "Frontend Lead", "severity": "Low", "goal": "Mock Goal 2", "acceptance_criteria": ["criteria 2"], "title": "Mock Goal 2"}
|
||||
]
|
||||
elif 'Sprint Planning' in _custom_system_prompt:
|
||||
keyword = "Sprint Planning"
|
||||
mock_response_content = [
|
||||
{"id": "mock-ticket-1", "type": "Ticket", "goal": "Mock Ticket 1", "target_file": "file1.py", "depends_on": [], "context_requirements": "req 1"},
|
||||
{"id": "mock-ticket-2", "type": "Ticket", "goal": "Mock Ticket 2", "target_file": "file2.py", "depends_on": ["mock-ticket-1"], "context_requirements": "req 2"}
|
||||
]
|
||||
else:
|
||||
# Tier 3 mock response for ticket execution
|
||||
mock_response_content = "SUCCESS: Mock Tier 3 worker implemented the change. [MOCK OUTPUT]"
|
||||
|
||||
print(f"[MOCK AI] Triggered for prompt keyword: {keyword}")
|
||||
return json.dumps(mock_response_content)
|
||||
# --- END MOCK LOGIC ---
|
||||
|
||||
with _send_lock:
|
||||
if _provider == "gemini":
|
||||
return _send_gemini(md_content, user_message, base_dir, file_items, discussion_history, pre_tool_callback, qa_callback)
|
||||
|
||||
Reference in New Issue
Block a user