@mindscraft/branch-video-agent-cli 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +10 -4
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -4,16 +4,22 @@
4
4
 
5
5
  ## 安装与执行
6
6
 
7
- 推荐直接使用 `npx`:
7
+ 推荐显式指定包和可执行名:
8
8
 
9
9
  ```powershell
10
- npx -y @mindscraft/branch-video-agent-cli --help
10
+ npm exec --yes --package=@mindscraft/branch-video-agent-cli branch-video-agent -- --help
11
11
  ```
12
12
 
13
13
  中国大陆用户如果希望更稳定、更快地安装,可以走 npm 的公开镜像:
14
14
 
15
15
  ```powershell
16
- npx -y --registry=https://registry.npmmirror.com @mindscraft/branch-video-agent-cli --help
16
+ npm exec --yes --registry=https://registry.npmmirror.com --package=@mindscraft/branch-video-agent-cli branch-video-agent -- --help
17
+ ```
18
+
19
+ 如果你更喜欢简写,从 `0.1.2` 开始也支持:
20
+
21
+ ```powershell
22
+ npx -y @mindscraft/branch-video-agent-cli --help
17
23
  ```
18
24
 
19
25
  也可以全局安装:
@@ -37,7 +43,7 @@ branch-video-agent --help
37
43
  "page": 1,
38
44
  "limit": 20
39
45
  }
40
- '@ | npx -y @mindscraft/branch-video-agent-cli project list
46
+ '@ | npm exec --yes --package=@mindscraft/branch-video-agent-cli branch-video-agent -- project list
41
47
  ```
42
48
 
43
49
  ## 在仓库内构建发布包
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@mindscraft/branch-video-agent-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Published CLI for branch-video and AIHub agent APIs.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "branch-video-agent": "./dist/bin.js"
7
+ "branch-video-agent": "./dist/bin.js",
8
+ "branch-video-agent-cli": "./dist/bin.js"
8
9
  },
9
10
  "exports": {
10
11
  ".": "./dist/index.js"