@zhizhi-ai/cli 0.3.4 → 0.4.1

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 +15 -15
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -7,7 +7,7 @@ Zhizhi 命令行客户端。
7
7
  不全局安装,直接通过 `npx` 运行:
8
8
 
9
9
  ```sh
10
- npx @zhizhi-ai/cli --help
10
+ npx @zhizhi-ai/cli@latest --help
11
11
  ```
12
12
 
13
13
  也可以全局安装后使用 `zhizhi` 命令:
@@ -22,7 +22,7 @@ zhizhi --help
22
22
  在远端机器上使用 Web 端生成的 pairing token 注册 runtime connector:
23
23
 
24
24
  ```sh
25
- npx @zhizhi-ai/cli connect \
25
+ npx @zhizhi-ai/cli@latest connect \
26
26
  --server https://your-zhizhi-server.example.com \
27
27
  --workspace-id <workspace-id> \
28
28
  --pairing-token <pairing-token> \
@@ -32,47 +32,47 @@ npx @zhizhi-ai/cli connect \
32
32
  注册成功后,启动 connector:
33
33
 
34
34
  ```sh
35
- npx @zhizhi-ai/cli serve
35
+ npx @zhizhi-ai/cli@latest serve
36
36
  ```
37
37
 
38
38
  后台启动 connector,并把日志写入本机 Zhizhi root 下的 daemon 日志文件:
39
39
 
40
40
  ```sh
41
- npx @zhizhi-ai/cli serve --background
41
+ npx @zhizhi-ai/cli@latest serve --background
42
42
  ```
43
43
 
44
44
  只执行一轮 heartbeat/claim,用于轻量诊断:
45
45
 
46
46
  ```sh
47
- npx @zhizhi-ai/cli serve --once
47
+ npx @zhizhi-ai/cli@latest serve --once
48
48
  ```
49
49
 
50
50
  ## 常用命令
51
51
 
52
52
  ```sh
53
53
  # 查看本地 connector profile 和 server live status
54
- npx @zhizhi-ai/cli status
54
+ npx @zhizhi-ai/cli@latest status
55
55
 
56
56
  # 查看本地 daemon 状态
57
- npx @zhizhi-ai/cli daemon status
57
+ npx @zhizhi-ai/cli@latest daemon status
58
58
 
59
59
  # 查看本地 daemon 日志尾部,默认 80 行
60
- npx @zhizhi-ai/cli daemon logs --tail 120
60
+ npx @zhizhi-ai/cli@latest daemon logs --tail 120
61
61
 
62
62
  # 停止后台 daemon
63
- npx @zhizhi-ai/cli daemon stop
63
+ npx @zhizhi-ai/cli@latest daemon stop
64
64
 
65
65
  # revoke connection key 并删除本地 profile
66
- npx @zhizhi-ai/cli disconnect
66
+ npx @zhizhi-ai/cli@latest disconnect
67
67
 
68
68
  # 轮换 connection key
69
- npx @zhizhi-ai/cli rotate-key
69
+ npx @zhizhi-ai/cli@latest rotate-key
70
70
 
71
71
  # 输出 CLI 版本
72
- npx @zhizhi-ai/cli version
72
+ npx @zhizhi-ai/cli@latest version
73
73
 
74
74
  # 本地轻量诊断
75
- npx @zhizhi-ai/cli doctor
75
+ npx @zhizhi-ai/cli@latest doctor
76
76
  ```
77
77
 
78
78
  ## 本地配置位置
@@ -80,5 +80,5 @@ npx @zhizhi-ai/cli doctor
80
80
  所有命令都支持全局参数 `--root <PATH>` 覆盖本机 Zhizhi root;它的优先级高于 `ZHIZHI_ROOT` 环境变量。
81
81
 
82
82
  ```sh
83
- npx @zhizhi-ai/cli --root /opt/zhizhi-client status
84
- ```
83
+ npx @zhizhi-ai/cli@latest --root /opt/zhizhi-client status
84
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhizhi-ai/cli",
3
- "version": "0.3.4",
3
+ "version": "0.4.1",
4
4
  "description": "Zhizhi command line client",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -12,8 +12,8 @@
12
12
  "README.md"
13
13
  ],
14
14
  "optionalDependencies": {
15
- "@zhizhi-ai/cli-darwin-arm64": "0.3.4",
16
- "@zhizhi-ai/cli-linux-x64-musl": "0.3.4"
15
+ "@zhizhi-ai/cli-darwin-arm64": "0.4.1",
16
+ "@zhizhi-ai/cli-linux-x64-musl": "0.4.1"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"