feat: use llm for targeted rewrite

This commit is contained in:
Codex
2026-06-21 23:43:02 +08:00
parent 9efbe1a354
commit 3d49789743
4 changed files with 92 additions and 4 deletions
+2 -2
View File
@@ -183,7 +183,7 @@ describe("workflow nodes", () => {
expect(report.overall_status).toBe("fail");
});
it("rewrites only the failing target area", () => {
it("rewrites only the failing target area", async () => {
const article = {
title: "Bad title!!!",
summary: "Original summary",
@@ -193,7 +193,7 @@ describe("workflow nodes", () => {
requires_user_confirmation: [],
};
const rewritten = rewriteFailedSections({
const rewritten = await rewriteFailedSections({
article,
factCard: confirmedFactCard,
failedChecks: [