feat: 规则导入 Converter 架构 + Excel/AI 转换 + 多项优化

- 提取 RuleConverter 接口及 5 个实现(Yaml/Md/Txt/ExcelConverter),
  由 ImportService 按扩展名路由,简化 setupView.ts addRule() 为单行调用
- Excel 导入:读取 xlsx → Markdown 表格 → AI 识别列头 → 生成 YAML
- 添加规则支持 yaml/yml/md/txt/xlsx/xls 多种格式
- 导出报告改为 QuickPick 双选(复制到剪贴板 / 下载 Markdown 文件)
- 修复测试连接成功后第三步圆圈不变绿的 bug
- 侧边栏标题改为「净码特工 · 代码审查 · 设置」
- 规则名称输入框增加提示文字
- 新增测试:adapter、config、merger、pipeline + fixtures/manual
- 依赖:新增 xlsx
This commit is contained in:
范智鹏
2026-07-21 22:16:52 +08:00
parent d4c3fb9df7
commit 1a050d7699
6 changed files with 182 additions and 107 deletions
+2 -1
View File
@@ -244,7 +244,8 @@
"dependencies": {
"eslint": "^9.39.3",
"stylelint": "^17.14.0",
"typescript-eslint": "^8.56.1"
"typescript-eslint": "^8.56.1",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@types/mocha": "^10.0.10",