@daisu-ui/cli 0.1.0-beta.3 → 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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # 更新日志
2
2
 
3
+ ## 0.1.0-beta.6
4
+
5
+ - 默认源码仓库和 npm 包元信息更新为 GitHub DaisSu-UI/cli。
6
+ - 通过 GitHub Actions 验证、打包和发布 npm,复用校验产物并核对版本、main 来源与 SHA-512。
7
+ - 补全组件公开 API 与辅助类型文档快照。
8
+
9
+ ## 0.1.0-beta.5
10
+
11
+ - 修复新 Runner 的离线安装包校验和 CI 凭据对测试的影响,通过 GitLab 自动发布 npm 首页居中修正版。
12
+
13
+ ## 0.1.0-beta.4
14
+
15
+ - npm 默认首页采用居中 Logo、标题、徽章与导航,补齐公开图片和 HTTPS 包元数据。
16
+ - 区分 developer 开发与 main 发布分支,通过版本标签自动验证并发布 npm,校验产物摘要、版本与源码来源,支持重复任务核对。
17
+
3
18
  ## 0.1.0-beta.3
4
19
 
5
20
  - npm README 使用品牌 Logo 与居中头部,统一标题、简介、徽章、导航和首屏分隔布局。
package/LICENSE CHANGED
File without changes
package/README.md CHANGED
@@ -13,14 +13,14 @@
13
13
  </p>
14
14
 
15
15
  <p align="center">
16
- <a href="https://www.npmjs.com/package/@daisu-ui/cli"><img src="https://img.shields.io/npm/v/%40daisu-ui%2Fcli/beta?style=flat-square&amp;color=1c64fd&amp;label=npm" alt="npm version"></a>
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&amp;color=1c64fd&amp;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://git.zilueit.com/daisu-ui/cli/-/pipelines"><img src="https://img.shields.io/badge/CI-GitLab-fc6d26?style=flat-square" alt="GitLab CI"></a>
19
- <a href="https://git.zilueit.com/daisu-ui/cli/-/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-74a600?style=flat-square" alt="MIT license"></a>
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://git.zilueit.com/daisu-ui/daisu-ui">组件文档</a>
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>
@@ -39,10 +39,10 @@ Daisu UI 是面向 **ReactLynx** 的组件库。这个工具将真实的公开
39
39
 
40
40
  ## 🚀 30 秒接入
41
41
 
42
- 需要 **Node.js >= 20.19.0**。当前为预发布版本,使用 `beta` 标签安装。
42
+ 需要 **Node.js >= 20.19.0**。当前为预发布版本,使用 `latest` 标签安装当前版本。
43
43
 
44
44
  ```bash
45
- npm install -g @daisu-ui/cli@beta
45
+ npm install -g @daisu-ui/cli@latest
46
46
  ```
47
47
 
48
48
  进入使用组件库的项目,配置你的 AI 客户端:
@@ -178,14 +178,14 @@ OpenCode 复用唯一的已有配置;存在多个候选文件时要求先合
178
178
  全局安装后使用 `daisu`,也可以按需运行:
179
179
 
180
180
  ```bash
181
- npx -y @daisu-ui/cli@beta info Button
182
- pnpm dlx @daisu-ui/cli@beta info Button
181
+ npx -y @daisu-ui/cli@latest info Button
182
+ pnpm dlx @daisu-ui/cli@latest info Button
183
183
  ```
184
184
 
185
185
  项目开发依赖方式:
186
186
 
187
187
  ```bash
188
- npm install --save-dev @daisu-ui/cli@beta
188
+ npm install --save-dev @daisu-ui/cli@latest
189
189
  npx --no-install daisu info Button
190
190
  ```
191
191
 
@@ -236,9 +236,9 @@ daisu list --version latest --format json
236
236
  daisu data check
237
237
  ```
238
238
 
239
- CLI `0.1.0-beta.3` 收录当前 `@daisu-ui/ui@0.1.0-beta.3` 及历史 `daisu-ui` 快照。默认优先识别项目实际安装版本,再检查依赖声明,最后使用随包最新数据;找不到对应版本会明确报错。尚未安装的本地路径或 Git 依赖无法确定版本时,会给出提示。历史版本的导入路径以查询结果中的 `importFrom` 为准。
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`。结构化结果写入 stdout,错误和提示写入 stderr;`lint` 有错误时返回非零退出码,`--strict` 将警告也视为失败。`daisu --version` 是 CLI 版本,子命令的 `--version <值>` 是组件数据版本。
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` 配置示例,版本固定为当前 CLI:
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@0.1.0-beta.3",
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@git.zilueit.com:daisu-ui/cli.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
- CI 兼容现有 GitLab,校验分支和版本 Tag 并保存 npm tarball,不自动发布。`AGENTS.md` 管理仓库开发规则;消费端 Skill 通过 `agent init` 安装到使用者项目。
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,校验分支和版本 Tag 并保存 npm tarball,不
350
350
 
351
351
  ## License
352
352
 
353
- [MIT](https://git.zilueit.com/daisu-ui/cli/-/blob/main/LICENSE)。第三方说明见 [THIRD_PARTY_NOTICES.md](https://git.zilueit.com/daisu-ui/cli/-/blob/main/THIRD_PARTY_NOTICES.md)。
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)。
File without changes
File without changes
File without changes
File without changes
File without changes