@finedesign/cli 0.3.1 → 0.4.0
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/CHANGELOG.md +8 -0
- package/README.md +2 -2
- package/data/1.24.9/catalog.json +1 -1
- package/data/1.24.9/manifest.json +2 -2
- package/data/1.25.0/catalog.json +1 -1
- package/data/1.25.0/manifest.json +3 -3
- package/package.json +1 -1
- package/src/cli.mjs +7 -4
- package/src/core/contracts.mjs +21 -1
- package/src/core/lint.mjs +16 -11
- package/src/core/version.mjs +16 -0
- package/src/mcp.mjs +39 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
2026-11-05
|
|
6
|
+
|
|
7
|
+
- MCP 新增组件概览、Design Token、版本对比和代码检查,支持省略可选的工具参数。
|
|
8
|
+
- CLI 和 MCP 按扫描目标检测 Fine Design 版本,仅在执行 `lint` 时加载语法解析器。代码检查支持传统装饰器和 SVG 图标类型导入。
|
|
9
|
+
- 补齐 `1.24.9` 的 `Combo.Check`、图标示例和组件别名,更新 `1.25.0` 示例中的 Dialog 回调与图标导入。日期示例导出时移除站点专用样式前缀。
|
|
10
|
+
|
|
3
11
|
## 0.3.1
|
|
4
12
|
|
|
5
13
|
2026-11-05
|
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ CLI 内置 `skills/fine-design/SKILL.md`。将以下指令发给 AI 编码助手
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
MCP
|
|
72
|
+
MCP 提供组件搜索、API、Design Token、示例、版本对比、代码检查和浏览器运行时查询。客户端可自动发现工具参数。组件查询需传入精确的 `version`,代码检查可以从目标工程检测版本,运行时查询需要联网。
|
|
73
73
|
|
|
74
74
|
## 命令
|
|
75
75
|
|
|
@@ -103,7 +103,7 @@ MCP 提供组件搜索、文档、示例和浏览器运行时查询;工具输
|
|
|
103
103
|
|
|
104
104
|
## 版本与输出
|
|
105
105
|
|
|
106
|
-
- **组件版本**:`--fd-version`
|
|
106
|
+
- **组件版本**:`--fd-version` 优先,其次使用 `--project <目录>` 指定的工程。未指定时,`lint` 从扫描目标检测版本,其他组件查询从当前工程检测。未收录的版本会报错。
|
|
107
107
|
- **输出格式**:默认文本;`--format json` 适合 Agent。`doc`、`info`、`token` 支持 Markdown;`runtime` 支持 HTML。
|
|
108
108
|
- **结果与错误**:结果写入 stdout,错误写入 stderr。退出码 `0` 表示成功,`1` 表示检查未通过或运行错误,`2` 为参数问题,`3` 为版本问题,`4` 为资料未找到。
|
|
109
109
|
|