修复发布校准验证问题

This commit is contained in:
Codex
2026-06-24 11:19:01 +08:00
parent ed176b9fac
commit aa19696edb
2 changed files with 9 additions and 2 deletions
+4 -2
View File
@@ -11,9 +11,11 @@ interface ManualAdapterFetchInput extends AdapterFetchInput {
manualInput: unknown; manualInput: unknown;
} }
export function createManualPerformanceAdapter(): PerformanceAdapter & { interface ManualPerformanceAdapter extends Omit<PerformanceAdapter, "fetch"> {
fetch(input: ManualAdapterFetchInput): Promise<PerformanceSnapshot>; fetch(input: ManualAdapterFetchInput): Promise<PerformanceSnapshot>;
} { }
export function createManualPerformanceAdapter(): ManualPerformanceAdapter {
return { return {
source: "manual", source: "manual",
async fetch(input) { async fetch(input) {
@@ -49,9 +49,14 @@ describe("sqlite repositories", () => {
expect(tables).toEqual([ expect(tables).toEqual([
"article_jobs", "article_jobs",
"brand_templates", "brand_templates",
"calibration_events",
"fact_cards", "fact_cards",
"optimized_articles", "optimized_articles",
"performance_snapshots",
"publication_records",
"qa_reports", "qa_reports",
"rubric_versions",
"scoring_runs",
]); ]);
}); });