@qilitt-mickey/vue3-temp-skill 1.1.33 → 1.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/check.mjs +4 -2
- package/scripts/match.py +12 -8
package/package.json
CHANGED
package/scripts/check.mjs
CHANGED
|
@@ -57,8 +57,10 @@ for (const check of checks) {
|
|
|
57
57
|
const output = check.cmd();
|
|
58
58
|
// 只在有输出时打印(避免刷屏)
|
|
59
59
|
const lines = output.trim().split("\n");
|
|
60
|
-
const summary =
|
|
61
|
-
|
|
60
|
+
const summary =
|
|
61
|
+
lines.find((l) => /^OK \d+\/\d+ scenarios/.test(l.trim())) ||
|
|
62
|
+
lines.find((l) => l.includes("校验通过")) ||
|
|
63
|
+
lines[lines.length - 1];
|
|
62
64
|
console.log(`\u2713 ${summary?.trim() || "OK"}`);
|
|
63
65
|
passed++;
|
|
64
66
|
} catch (e) {
|
package/scripts/match.py
CHANGED
|
@@ -96,18 +96,22 @@ def print_result(result):
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
def batch():
|
|
99
|
+
"""Regression scenarios — ASCII labels only (Windows console safe)."""
|
|
99
100
|
scenarios = [
|
|
100
|
-
"客户管理列表,按名称和状态查询,跳转详情",
|
|
101
|
-
"仪表盘展示 ECharts 趋势图",
|
|
102
|
-
"审批流程 BPMN 页面",
|
|
103
|
-
"移动端客户 H5 列表",
|
|
104
|
-
"附件上传、预览和导出",
|
|
105
|
-
"编辑页增加数据变更对比",
|
|
101
|
+
("customer-crud-detail", "客户管理列表,按名称和状态查询,跳转详情"),
|
|
102
|
+
("dashboard-echarts", "仪表盘展示 ECharts 趋势图"),
|
|
103
|
+
("workflow-bpmn", "审批流程 BPMN 页面"),
|
|
104
|
+
("mobile-h5-list", "移动端客户 H5 列表"),
|
|
105
|
+
("file-upload-export", "附件上传、预览和导出"),
|
|
106
|
+
("edit-data-compare", "编辑页增加数据变更对比"),
|
|
106
107
|
]
|
|
107
108
|
manifest = load_manifest()
|
|
108
|
-
|
|
109
|
+
print(f"match batch: {len(scenarios)} scenarios")
|
|
110
|
+
for label, text in scenarios:
|
|
109
111
|
result = run(text, manifest)
|
|
110
|
-
|
|
112
|
+
groups = ", ".join(x["id"] for x in result["matched"]) or "core-kernel"
|
|
113
|
+
print(f" [{label}] -> {groups}")
|
|
114
|
+
print(f"OK {len(scenarios)}/{len(scenarios)} scenarios")
|
|
111
115
|
|
|
112
116
|
|
|
113
117
|
def main():
|