@exonix/tchat-cli 1.1.2 → 1.1.5

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 -7
  2. 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. 环境变量 `TCHAT_ACCESSTOKEN`
16
- 2. 配置文件 `~/.tchat-cli/config.yaml`(`tchat-cli auth login` 自动保存)
17
- 3. 通过 `tchat-cli token get --uid <UID>` 获取并自动保存
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
- # 方式二:H5 登录(自动保存到配置文件)
27
+ # 方式三:H5 登录(自动保存到配置文件)
24
28
  tchat-cli auth login
25
29
 
26
- # 方式三:通过 IDM 接口获取 token
30
+ # 方式四:通过 IDM 接口获取 token
27
31
  tchat-cli token get --uid <UID>
28
32
  ```
29
33
 
@@ -45,7 +49,7 @@ tchat-cli widget list
45
49
  tchat-cli widget list --keyword 考勤
46
50
 
47
51
  # Message search
48
- tchat-cli msg search --session "g@10000219039" --sender user001 --type SESSION_RECENT
52
+ tchat-cli msg search --session "g@10000219039" --sender user001 --type SESSION_RECENT --limit 20
49
53
 
50
54
  # Contact search(支持多关键词 OR 关系)
51
55
  tchat-cli contact search -k "张三"
@@ -68,6 +72,10 @@ tchat-cli schedule room-list --start 1704182400000 --end 1704186000000
68
72
  tchat-cli meeting create -d '{"type":0,"subject":"评审","startTime":1704182400000,"endTime":1704186000000,"meetingType":0}'
69
73
  tchat-cli meeting list
70
74
  tchat-cli meeting history
75
+
76
+ # Atlas - 挑T帖搜索(仅职员)
77
+ tchat-cli atlas search --condition "技术创新" --start 1715587200000 --end 1716192000000
78
+ tchat-cli atlas search --condition "项目管理" --start 1715587200000 --end 1716192000000 --page 1 --size 20
71
79
  ```
72
80
 
73
81
  ## Environment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exonix/tchat-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.5",
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.2",
16
- "@exonix/tchat-cli-darwin-x64": "1.1.2",
17
- "@exonix/tchat-cli-linux-x64": "1.1.2",
18
- "@exonix/tchat-cli-linux-arm64": "1.1.2",
19
- "@exonix/tchat-cli-win32-x64": "1.1.2"
15
+ "@exonix/tchat-cli-darwin-arm64": "1.1.5",
16
+ "@exonix/tchat-cli-darwin-x64": "1.1.5",
17
+ "@exonix/tchat-cli-linux-x64": "1.1.5",
18
+ "@exonix/tchat-cli-linux-arm64": "1.1.5",
19
+ "@exonix/tchat-cli-win32-x64": "1.1.5"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",