import { useState } from 'react'; import { Check, Play, Wand2, X } from 'lucide-react'; import { api, errorText } from '../api'; import { CATEGORY_LABEL, SCOPE_LABEL, type Scope } from '../types'; interface Plan { id: number; key: string; value: string; category: string; school_count: number; observations: number; action: 'verify' | 'reject' | 'hold'; scope: Scope | null; reason: string; } interface Result { dry_run: boolean; examined: number; verified: number; rejected: number; held: number; policy: { min_schools: number; min_observations: number; require_llm: boolean; auto_reject: boolean; max_actions: number }; plans: { verify: Plan[]; reject: Plan[]; hold: Plan[] }; } function PlanList({ title, plans, tone }: { title: string; plans: Plan[]; tone: string }) { if (plans.length === 0) return null; return (
只对证据够硬的条目动手。系统规则和其他类永远留给人,因为一条错的规则会让 Agent 以后一直绕开正确操作。 自动驳回只是暂缓,那条知识再被观察到会退回队列;人工驳回才是终局。 {llmReady ? '模型已配置,会参与判断。' : '未配模型 Key,只用规则层,能自动处理的会少很多。'}
{result.dry_run ? '干跑结果(还没改任何状态)' : '已执行'}:检查 {result.examined} 条 → 采纳 {result.verified}、驳回 {result.rejected}、留给人工 {result.held}