import type { AbnormalLevel, ModelCategoryId, ModelGrade } from "./modelData"; export type MonitoringRule = { id: number; ranking: "相符" | "不符"; ksBand: string; psiBand: string; dropBand: string; abnormal: AbnormalLevel; grade: ModelGrade; reason: string; action: string; }; export type ThresholdConfig = { ks: number; psiLow: number; psiHigh: number; ksDrop: number; interventionKs: number; interventionPsi: number; }; export const BASE_THRESHOLDS: ThresholdConfig = { ks: 40, psiLow: 10, psiHigh: 25, ksDrop: 20, interventionKs: 30, interventionPsi: 50, }; export const CATEGORY_THRESHOLDS: Record = { std: null, bai: null, big: null, afd: null, }; export const MONITORING_RULES: MonitoringRule[] = []; export const RULE_VERSIONS: Array<{ version: string; category: string; author: string; createdAt: string; current: boolean; note: string }> = []; export type PromptKey = "A" | "BC"; export const PROMPTS: Partial> = {}; export const PROMPT_VERSIONS: Array<{ version: string; author: string; createdAt: string; current: boolean; note: string }> = []; export const PROMPT_REGRESSION: Array<{ sample: string; result: string; detail: string }> = []; export const TEMPLATE_VERSIONS: Array<{ version: string; author: string; createdAt: string; current: boolean; note: string }> = []; export const BANK_REPORT_CONFIG: Record = {};