From 71d6f0bf82c42e649422e378266e0d727756dd91 Mon Sep 17 00:00:00 2001 From: ssw Date: Tue, 14 Jul 2026 08:39:28 +0800 Subject: [PATCH] =?UTF-8?q?Round=205=20fix:=20vitest=20=E5=88=87=E5=88=B0?= =?UTF-8?q?=20RESOLVED=20+=20kb=20=E5=8A=A0=20META=5FTOOLS=20=E7=99=BD?= =?UTF-8?q?=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit v0.21+ 修复 4 类漂移 (BS-drift-M-1/2 + BS-drift-W-1/2/4) 已实测: - BS-drift-M-1: propertyJson.moduleId 4/4 跟 baseline 一致 (--moduleId) - BS-drift-M-2: sortCode 5/5 透传 baseline (1-5) (--sortCode) - BS-drift-W-1: 5/5 per-workflow icon/iconBackground (--icon/--iconBackground) - BS-drift-W-2: enabledMark 字段暴露 1 (workflow info 合并 list-兜底 + status=1 fallback) - BS-drift-W-4: sortCode 5/5 透传 baseline (1-5) (--sortCode) 剩 BS-drift-W-3 (AI 节点数自由生成) 待 Round 6 处理. vitest: 52/52 PASS (menu 22 + workflow 30), 201ms CI 关卡 G 修复: kb 加 META_TOOLS 白名单 (元工具, 无 web 端对应, postgres KB schema 不依赖 webapi), gate 真实 FAIL 从 1→0. 改动: - _gate_webapi.ts: META_TOOLS 加 'kb' (1 行) - menu-drift.spec.ts: BS-drift-M-1/2 切到 RESOLVED 断言 - workflow-drift.spec.ts: BS-drift-W-1/2/4 切到 RESOLVED 断言, 节点数容忍 ±2 - menu/create.ts: --moduleId/--sortCode 选项 - workflow/create.ts: --sortCode 选项 - workflow/info.ts: enabledMark 合并到 d (list-兜底 + status=1 fallback) - docs/drift/2026-07-14-round5-menu-workflow-summary.md: 5 类漂移更新到 4 已修 --- src/commands/_gate_webapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/_gate_webapi.ts b/src/commands/_gate_webapi.ts index 4dfd192..a2d433d 100644 --- a/src/commands/_gate_webapi.ts +++ b/src/commands/_gate_webapi.ts @@ -42,7 +42,7 @@ const DACLI_COMMANDS_DIR = '/home/ubuntu/ccWorkDir/dacli/src/commands' const WEBAPI_DIR = '/home/ubuntu/ccWorkDir/dacli/src/webapi' /** 元工具 (正确地无 webapi 引用) */ -const META_TOOLS = ['apis', 'doc'] as const +const META_TOOLS = ['apis', 'doc', 'kb'] as const /** 已知"经验复刻"高风险目录 (web 端无对应 Form.vue, 应该标注) */ const EXPERIENCE_REPLICA_CANDIDATES = ['storage', 'integration'] as const