@huyuan-ai/cli 1.2.0 → 1.3.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/UPGRADE.md +23 -0
- package/package.json +5 -3
package/UPGRADE.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# @huyuan-ai/cli 升级说明
|
|
2
|
+
|
|
3
|
+
本文档说明各版本相对上一版本的重要变更,以及从旧版升级时的注意点。
|
|
4
|
+
|
|
5
|
+
## 1.3.0
|
|
6
|
+
|
|
7
|
+
### 新增
|
|
8
|
+
|
|
9
|
+
- **全局命令 `huyuan-opencli`**:与 `huyuan-ai-cli` 一并安装时,可直接在命令行使用上游 OpenCLI 的 CLI 入口(`list`、`doubao` 等子命令与独立安装 `@jackwener/opencli` 时的 `opencli` 一致)。命令名使用 `huyuan-opencli`,避免与本机已存在的 `opencli` 可执行文件在 PATH 上冲突。
|
|
10
|
+
|
|
11
|
+
### 升级步骤
|
|
12
|
+
|
|
13
|
+
1. 更新包,例如:`pnpm add -g @huyuan-ai/cli@latest` 或 `npm install -g @huyuan-ai/cli@latest`(按你本机习惯选择包管理器)。
|
|
14
|
+
2. 若从源码或 `pnpm link` 使用,在仓库根目录执行 `pnpm run build`,确保 `vendor/opencli/dist` 已构建。
|
|
15
|
+
3. 验证:`huyuan-ai-cli --help` 与 `huyuan-opencli --help` 均可正常输出。
|
|
16
|
+
|
|
17
|
+
### 说明
|
|
18
|
+
|
|
19
|
+
- `huyuan-opencli` 与 `huyuan-ai-cli` 共用同一套已构建的 `vendor/opencli/dist/clis` 与用户目录 `~/.opencli/clis`;企业封装能力仍以 `huyuan-ai-cli` 为主,`huyuan-opencli` 便于需要与上游 OpenCLI 命令行行为完全对齐的场景。
|
|
20
|
+
|
|
21
|
+
## 1.2.0 及更早
|
|
22
|
+
|
|
23
|
+
更早版本的变更若需追溯,请查看仓库提交历史或发布标签说明。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huyuan-ai/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"bin": {
|
|
11
|
-
"huyuan-ai-cli": "./dist/index.js"
|
|
11
|
+
"huyuan-ai-cli": "./dist/index.js",
|
|
12
|
+
"huyuan-opencli": "./vendor/opencli/dist/src/main.js"
|
|
12
13
|
},
|
|
13
14
|
"scripts": {
|
|
14
15
|
"build": "node scripts/write-opencli-npmignore.mjs && npm install --prefix vendor/opencli && npm run build --prefix vendor/opencli && tsc",
|
|
@@ -28,7 +29,8 @@
|
|
|
28
29
|
"files": [
|
|
29
30
|
"dist",
|
|
30
31
|
"vendor/opencli/dist",
|
|
31
|
-
"README.md"
|
|
32
|
+
"README.md",
|
|
33
|
+
"UPGRADE.md"
|
|
32
34
|
],
|
|
33
35
|
"packageManager": "pnpm@10.26.2",
|
|
34
36
|
"devDependencies": {
|