feat(mma): Implement HITL execution clutch and step-mode
This commit is contained in:
@@ -36,6 +36,13 @@ class ConductorEngine:
|
||||
)
|
||||
run_worker_lifecycle(ticket, context)
|
||||
|
||||
def confirm_execution(payload: str) -> bool:
|
||||
"""
|
||||
Placeholder for external confirmation function.
|
||||
In a real scenario, this might trigger a UI prompt.
|
||||
"""
|
||||
return True
|
||||
|
||||
def run_worker_lifecycle(ticket: Ticket, context: WorkerContext, context_files: List[str] = None):
|
||||
"""
|
||||
Simulates the lifecycle of a single agent working on a ticket.
|
||||
@@ -74,7 +81,8 @@ def run_worker_lifecycle(ticket: Ticket, context: WorkerContext, context_files:
|
||||
response = ai_client.send(
|
||||
md_content="",
|
||||
user_message=user_message,
|
||||
base_dir="."
|
||||
base_dir=".",
|
||||
pre_tool_callback=confirm_execution if ticket.step_mode else None
|
||||
)
|
||||
|
||||
if "BLOCKED" in response.upper():
|
||||
|
||||
Reference in New Issue
Block a user