From dcf4840c7a86d7319ecdf3dd1ae9d4ca40ad2267 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 3 Oct 2026 00:15:15 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=83=BD=E5=8A=9B=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=90=AB=E8=B5=B7=E8=8D=89=E5=B7=A1=E6=A3=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/server/test/sources-identity/site-capabilities.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/server/test/sources-identity/site-capabilities.test.ts b/apps/server/test/sources-identity/site-capabilities.test.ts index e6bba7ad..084e5ed5 100644 --- a/apps/server/test/sources-identity/site-capabilities.test.ts +++ b/apps/server/test/sources-identity/site-capabilities.test.ts @@ -15,9 +15,10 @@ const TiB = 1024 ** 4; const SITE_IDS = ["site.list", "site.health_check", "site.refresh_login", "site.user_data"] as const; describe("站点能力规格", () => { - it("进入能力目录(41 个已有能力 + 整理元数据补全);类别 / 风险 / 重放按约定", () => { - expect(CAPABILITY_IDS).toHaveLength(42); + it("进入能力目录(41 个已有能力 + 整理元数据补全 + 起草巡检);类别 / 风险 / 重放按约定", () => { + expect(CAPABILITY_IDS).toHaveLength(43); expect(capabilitySpec("metadata.resolve_organize")).toMatchObject({ kind: "execute", replay: "never" }); + expect(capabilitySpec("schedule.draft_check")).toMatchObject({ kind: "propose", riskLevel: "low", replay: "never" }); for (const id of SITE_IDS) expect(CAPABILITY_IDS).toContain(id); expect(capabilitySpec("site.list")).toMatchObject({ kind: "read", riskLevel: "low", replay: "safe" }); expect(capabilitySpec("site.user_data")).toMatchObject({ kind: "read", riskLevel: "low", replay: "safe" });