@exonix/tchat-cli 1.1.1 → 1.1.3
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/README.md +10 -6
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -12,18 +12,22 @@ npm install -g @exonix/tchat-cli
|
|
|
12
12
|
|
|
13
13
|
Token 获取方式(按优先级):
|
|
14
14
|
|
|
15
|
-
1.
|
|
16
|
-
2.
|
|
17
|
-
3.
|
|
15
|
+
1. 容器环境变量 `TCHAT_TOKEN`(若存在则直接使用)
|
|
16
|
+
2. 环境变量 `TCHAT_ACCESSTOKEN`
|
|
17
|
+
3. 配置文件 `~/.tchat-cli/config.yaml` 中的 `access_token` 字段
|
|
18
|
+
4. 通过 `tchat-cli token get --uid <UID>` 获取并自动保存
|
|
18
19
|
|
|
19
20
|
```bash
|
|
20
|
-
#
|
|
21
|
+
# 方式一:容器环境变量(最高优先级)
|
|
22
|
+
export TCHAT_TOKEN="your_access_token"
|
|
23
|
+
|
|
24
|
+
# 方式二:环境变量
|
|
21
25
|
export TCHAT_ACCESSTOKEN="your_access_token"
|
|
22
26
|
|
|
23
|
-
#
|
|
27
|
+
# 方式三:H5 登录(自动保存到配置文件)
|
|
24
28
|
tchat-cli auth login
|
|
25
29
|
|
|
26
|
-
#
|
|
30
|
+
# 方式四:通过 IDM 接口获取 token
|
|
27
31
|
tchat-cli token get --uid <UID>
|
|
28
32
|
```
|
|
29
33
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exonix/tchat-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "TChat CLI - AI friendly command line tool for TChat platform",
|
|
5
5
|
"keywords": ["tchat", "cli", "teamwork", "ai"],
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"postinstall": "node scripts/install.js"
|
|
13
13
|
},
|
|
14
14
|
"optionalDependencies": {
|
|
15
|
-
"@exonix/tchat-cli-darwin-arm64": "1.1.
|
|
16
|
-
"@exonix/tchat-cli-darwin-x64": "1.1.
|
|
17
|
-
"@exonix/tchat-cli-linux-x64": "1.1.
|
|
18
|
-
"@exonix/tchat-cli-linux-arm64": "1.1.
|
|
19
|
-
"@exonix/tchat-cli-win32-x64": "1.1.
|
|
15
|
+
"@exonix/tchat-cli-darwin-arm64": "1.1.3",
|
|
16
|
+
"@exonix/tchat-cli-darwin-x64": "1.1.3",
|
|
17
|
+
"@exonix/tchat-cli-linux-x64": "1.1.3",
|
|
18
|
+
"@exonix/tchat-cli-linux-arm64": "1.1.3",
|
|
19
|
+
"@exonix/tchat-cli-win32-x64": "1.1.3"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|