- EvalRun.triggered_by 全链路(manual/ai_assistant/cli)+ 迁移 b7d4e6f81c22 - 标准 agenteval-run SKILL.md 纳入版本管理,deploy 脚本同步 + API Key 注入 - 简单登录:AGENTEVAL_ADMIN_PASSWORD + HMAC 会话 token,require_auth 双凭据 - 对比报告限同场景(400)+ 空 results 误判修复 - /api/stats/dashboard 扩展聚合;/api/runs 返回场景/对象名 - 测试 218 → 232
30 lines
805 B
Python
30 lines
805 B
Python
"""add triggered_by to eval_runs
|
|
|
|
Revision ID: b7d4e6f81c22
|
|
Revises: a64b2f8c9d10
|
|
Create Date: 2026-07-27
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
import sqlalchemy as sa
|
|
import sqlmodel # noqa: F401
|
|
from alembic import op
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = "b7d4e6f81c22"
|
|
down_revision: Union[str, Sequence[str], None] = "a64b2f8c9d10"
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table("eval_runs") as batch_op:
|
|
batch_op.add_column(
|
|
sa.Column("triggered_by", sa.String(), nullable=False, server_default="manual")
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table("eval_runs") as batch_op:
|
|
batch_op.drop_column("triggered_by")
|