Backend: - Add Tavily web search tool wrapper (tools/web_search.py) - Add PDF reader + ChromaDB vector store tool (tools/pdf_reader.py) - Bind tools to LLM calls via .bind_tools() in dynamic_graph_builder - Implement God Mode using LangGraph interrupt_before + MemorySaver - Add approve/reject/modify API endpoints for God Mode - Add PDF upload endpoint with ingestion pipeline - Add persistent run history (CouncilRun model + run_service + API) - Add Alembic migration for council_runs table - Enhance WebSocket to emit run_paused and run_resumed events - Add tests for tools, God Mode, and run history Frontend: - Add God Mode approval UI (GodModePanel component) - Add Auto-Pilot / God Mode toggle in Konferenzzimmer - Add functional PDF upload handler - Add Conditional Edge editor (EdgeSettingsPanel component) - Add edge click selection in ArchitectCanvas - Update Zustand store with edge selection and update actions - Update types for God Mode, execution modes, and WS events - Update API client with God Mode, PDF upload, and blueprint run endpoints - Update WebSocket hook for paused/resumed events - Add Vitest config and frontend tests (store, parser, types, API) https://claude.ai/code/session_017U6idFgaqnYTXzPxA7mxMv
56 lines
1.5 KiB
Python
56 lines
1.5 KiB
Python
"""Create council_runs table for persistent run history
|
|
|
|
Revision ID: 002
|
|
Revises: 001
|
|
Create Date: 2026-02-21
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
revision: str = "002"
|
|
down_revision: Union[str, None] = "001"
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.create_table(
|
|
"council_runs",
|
|
sa.Column("id", sa.String(36), primary_key=True),
|
|
sa.Column("blueprint_id", sa.String(36), nullable=True),
|
|
sa.Column("input_topic", sa.Text(), nullable=False),
|
|
sa.Column(
|
|
"status",
|
|
sa.String(20),
|
|
nullable=False,
|
|
server_default="pending",
|
|
),
|
|
sa.Column(
|
|
"execution_mode",
|
|
sa.String(20),
|
|
nullable=False,
|
|
server_default="auto-pilot",
|
|
),
|
|
sa.Column("final_draft", sa.Text(), nullable=True),
|
|
sa.Column("critic_score", sa.Float(), nullable=True),
|
|
sa.Column("iteration_count", sa.Integer(), nullable=True),
|
|
sa.Column("active_node", sa.String(255), nullable=True),
|
|
sa.Column("error", sa.Text(), nullable=True),
|
|
sa.Column(
|
|
"created_at",
|
|
sa.DateTime(timezone=True),
|
|
nullable=False,
|
|
server_default=sa.func.now(),
|
|
),
|
|
sa.Column(
|
|
"completed_at",
|
|
sa.DateTime(timezone=True),
|
|
nullable=True,
|
|
),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_table("council_runs")
|