This commit is contained in:
Jordan Diaz
2026-05-08 21:31:28 +00:00
parent 0dabba5442
commit 44cb956f95
37 changed files with 2120 additions and 251 deletions

View File

@@ -207,6 +207,29 @@ class ClaudeFormatEmitter:
# Emit assistant snapshot for reconciliation
self._push(session_id, self._build_assistant_snapshot(session_id))
elif event_type == EventType.PLAN_CREATED:
# Fase 5.5: PlanStepper UI. Reenviamos los datos del plan al
# frontend como evento custom "plan.created".
self._push(session_id, {
"type": "plan.created",
"plan": data,
})
elif event_type == EventType.PLAN_ADVANCED:
self._push(session_id, {
"type": "plan.advanced",
"cursor": data.get("cursor", 0),
"completed_step_ids": data.get("completed_step_ids", []),
"status": data.get("status", "active"),
})
elif event_type == EventType.PLAN_ENDED:
self._push(session_id, {
"type": "plan.ended",
"status": data.get("status", "done"),
"objective": data.get("objective", ""),
})
elif event_type == EventType.EXECUTION_COMPLETED:
# Close any open text block
self._close_text_block(session_id)