@daisu-ui/cli 0.1.0-beta.5 → 0.1.0-beta.6
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 +6 -0
- package/README.md +10 -10
- package/data/0.1.0-beta.4.json +1 -1
- package/data/versions.json +1 -1
- package/dist/site-docs.js +25 -5
- package/dist/site-docs.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
<p align="center">
|
|
16
16
|
<a href="https://www.npmjs.com/package/@daisu-ui/cli"><img src="https://img.shields.io/npm/v/%40daisu-ui%2Fcli?style=flat-square&color=1c64fd&label=npm" alt="npm version"></a>
|
|
17
17
|
<a href="https://www.npmjs.com/package/@daisu-ui/cli"><img src="https://img.shields.io/badge/downloads-new%20package-868e96?style=flat-square" alt="npm downloads: new package"></a>
|
|
18
|
-
<a href="https://
|
|
19
|
-
<a href="https://
|
|
18
|
+
<a href="https://github.com/DaisSu-UI/cli"><img src="https://img.shields.io/badge/source-GitHub-181717?style=flat-square" alt="GitHub source"></a>
|
|
19
|
+
<a href="https://github.com/DaisSu-UI/cli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-74a600?style=flat-square" alt="MIT license"></a>
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
23
|
-
<a href="https://
|
|
23
|
+
<a href="https://gitcode.com/daisu/ui">组件库</a>
|
|
24
24
|
· <a href="#-30-秒接入">快速开始</a>
|
|
25
25
|
· <a href="#agent-接入">Agent 接入</a>
|
|
26
26
|
· <a href="#在终端使用">CLI</a>
|
|
@@ -236,9 +236,9 @@ daisu list --version latest --format json
|
|
|
236
236
|
daisu data check
|
|
237
237
|
```
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
当前 Git 仓库已收录 `@daisu-ui/ui@0.1.0-beta.4` 及历史快照;已发布的 npm CLI 按各自版本携带数据,不随 Git 自动更新,实际收录范围用 `daisu data list` 核对。默认优先识别项目实际安装版本,再检查依赖声明,最后使用随包最新数据;找不到对应版本会明确报错。尚未安装的本地路径或 Git 依赖无法确定版本时,会给出提示。历史版本的导入路径以查询结果中的 `importFrom` 为准。
|
|
240
240
|
|
|
241
|
-
查询支持 `--format text|json|markdown
|
|
241
|
+
查询支持 `--format text|json|markdown`。JSON 结果写入 stdout,提示包含在 warnings 字段中;非 JSON 模式将提示写入 stderr,错误仍写入 stderr;`lint` 有错误时返回非零退出码,`--strict` 将警告也视为失败。`daisu --version` 是 CLI 版本,子命令的 `--version <值>` 是组件数据版本。
|
|
242
242
|
|
|
243
243
|
`daisu update` 只报告本地版本;只有显式运行 `daisu update --check` 才会查询 npm 更新,不自动安装。
|
|
244
244
|
|
|
@@ -284,7 +284,7 @@ daisu mcp serve
|
|
|
284
284
|
|
|
285
285
|
### 手动配置
|
|
286
286
|
|
|
287
|
-
通用 `mcpServers`
|
|
287
|
+
通用 `mcpServers` 配置示例,使用 npm 的 `latest` 版本;需要固定已安装版本时使用 `daisu mcp print --client cursor --runner npx --pin`:
|
|
288
288
|
|
|
289
289
|
```json
|
|
290
290
|
{
|
|
@@ -293,7 +293,7 @@ daisu mcp serve
|
|
|
293
293
|
"command": "npx",
|
|
294
294
|
"args": [
|
|
295
295
|
"-y",
|
|
296
|
-
"@daisu-ui/cli@
|
|
296
|
+
"@daisu-ui/cli@latest",
|
|
297
297
|
"mcp",
|
|
298
298
|
"serve",
|
|
299
299
|
"--cwd",
|
|
@@ -319,7 +319,7 @@ VS Code 使用 `servers` 根字段,Codex 使用 TOML 的 `mcp_servers.daisu-ui
|
|
|
319
319
|
## 开发与贡献
|
|
320
320
|
|
|
321
321
|
```bash
|
|
322
|
-
git clone git@
|
|
322
|
+
git clone git@github.com:DaisSu-UI/cli.git
|
|
323
323
|
cd cli
|
|
324
324
|
npm ci
|
|
325
325
|
npm run build
|
|
@@ -339,7 +339,7 @@ npm run verify
|
|
|
339
339
|
|
|
340
340
|
`verify` 包括格式、类型、测试、数据摘要、发布版本和 tarball 独立安装验证。测试使用临时目录,不改真实编辑器配置。显式维护入口仍为 `npm run sync -- --ui-dir <UI仓库>` 与 `npm run docs:export -- --ui-dir <UI仓库>`;数据同步不自动拉取 Git。
|
|
341
341
|
|
|
342
|
-
|
|
342
|
+
源码与默认远程仓库托管于 [GitHub](https://github.com/DaisSu-UI/cli)。[GitHub Actions](https://github.com/DaisSu-UI/cli/actions) 对 developer、main 和 PR 执行验证;推送与 CLI 版本一致、且已合入 main 的 `v<版本>` 标签后,自动发布经过校验的同一份 tarball。发布步骤读取仓库 Actions Secret `NPM_TOKEN`,验证与打包步骤不接触发布凭据。分支、渠道、首次设置和重试方式见 [自动发布说明](https://github.com/DaisSu-UI/cli/blob/main/docs/releasing.md)。`AGENTS.md` 管理仓库开发规则;消费端 Skill 通过 `agent init` 安装到使用者项目。
|
|
343
343
|
|
|
344
344
|
## 当前边界
|
|
345
345
|
|
|
@@ -350,4 +350,4 @@ CI 兼容现有 GitLab:developer 用于开发、main 用于发布,普通推
|
|
|
350
350
|
|
|
351
351
|
## License
|
|
352
352
|
|
|
353
|
-
[MIT](https://
|
|
353
|
+
[MIT](https://github.com/DaisSu-UI/cli/blob/main/LICENSE)。第三方说明见 [THIRD_PARTY_NOTICES.md](https://github.com/DaisSu-UI/cli/blob/main/THIRD_PARTY_NOTICES.md)。
|