"use client"; import { useState } from "react"; import { Check, X, Pencil, Shield } from "lucide-react"; import { GodModeAction } from "@/app/types/council"; import { PauseInfo } from "@/app/hooks/useCouncilWebSocket"; interface Props { pauseInfo: PauseInfo; onAction: (action: GodModeAction, modifiedDraft?: string) => void; isResuming: boolean; } // God Mode approval panel — shown when the graph pauses at a node export function GodModePanel({ pauseInfo, onAction, isResuming }: Props) { const [editMode, setEditMode] = useState(false); const [editedDraft, setEditedDraft] = useState(pauseInfo.current_draft); const handleModify = () => { if (editMode) { onAction("modify", editedDraft); setEditMode(false); } else { setEditedDraft(pauseInfo.current_draft); setEditMode(true); } }; return (
{/* Header */}

God Mode — Freigabe erforderlich

{/* Info about which node is next */}

Nächster Agent:{" "} {pauseInfo.next_nodes.join(", ") || "—"}

{pauseInfo.iteration_count != null && (

Iteration: {pauseInfo.iteration_count}

)} {pauseInfo.critic_score != null && (

Bewertung: {pauseInfo.critic_score}/10

)}
{/* Current draft preview / editor */}
{editMode ? (