新增优化案例领域模型

This commit is contained in:
czj
2026-07-08 13:08:12 +08:00
parent 8b10969c49
commit de539aecb0
6 changed files with 258 additions and 0 deletions
@@ -66,6 +66,22 @@ describe("domain validation", () => {
goal: "保留原意,减少 AI 味",
intensity: "light",
user_instructions: "保留口语感",
publish_target: "未指定",
});
});
it("validates human-copy publish target", () => {
expect(
copyOptimizationRequestSchema.parse({
source_text: "这是一段普通文案。",
goal: "",
intensity: "light",
user_instructions: "",
publish_target: "朋友圈",
}),
).toMatchObject({
goal: "保留原意,减少 AI 味",
publish_target: "朋友圈",
});
});