@exonix/tchat-cli 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -1,47 +1,47 @@
1
1
  # @exonix/tchat-cli
2
2
 
3
- T信平台命令行工具,面向 AI 助手和开发者,默认输出紧凑 JSON。
3
+ TChat platform CLI tool - AI friendly command line interface.
4
4
 
5
- ## 安装
5
+ ## Install
6
6
 
7
7
  ```bash
8
8
  npm install -g @exonix/tchat-cli
9
9
  ```
10
10
 
11
- ## 配置
11
+ ## Configure
12
12
 
13
- 设置环境变量:
13
+ Set environment variable:
14
14
 
15
15
  ```bash
16
16
  export TCHAT_ACCESSTOKEN="your_access_token"
17
17
  ```
18
18
 
19
- ## 使用
19
+ ## Usage
20
20
 
21
21
  ```bash
22
- # 查看帮助
23
- tchat --help
22
+ # Show help
23
+ tchat-cli --help
24
24
 
25
- # 首页模块分类
26
- tchat widget list
27
- tchat widget list --name 考勤
25
+ # Widget categories
26
+ tchat-cli widget list
27
+ tchat-cli widget list --name keyword
28
28
 
29
- # 消息搜索
30
- tchat msg search --session "g@10000219039" --sender user001 --type SESSION_RECENT
29
+ # Message search
30
+ tchat-cli msg search --session "g@10000219039" --sender user001 --type SESSION_RECENT
31
31
 
32
- # 通讯录搜索
33
- tchat contact search -k "张三" --user user001
32
+ # Contact search
33
+ tchat-cli contact search -k "keyword" --user user001
34
34
  ```
35
35
 
36
- ## 环境
36
+ ## Environment
37
37
 
38
- | 参数 | 默认值 | 说明 |
39
- |------|--------|------|
40
- | `--env` | `test` | `test` `prod` |
38
+ | Flag | Default | Description |
39
+ |------|---------|-------------|
40
+ | `--env` | `test` | `test` or `prod` |
41
41
 
42
- ## 文档
42
+ ## Docs
43
43
 
44
- 详见 [USAGE.md](https://github.com/your-org/tchat-cli/blob/main/USAGE.md)
44
+ See [USAGE.md](https://github.com/your-org/tchat-cli/blob/main/USAGE.md)
45
45
 
46
46
  ## License
47
47
 
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "@exonix/tchat-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "TChat CLI - AI friendly command line tool for TChat platform",
5
5
  "keywords": ["tchat", "cli", "teamwork", "ai"],
6
6
  "license": "MIT",
7
7
  "bin": {
8
- "tchat": "bin/tchat"
8
+ "tchat-cli": "bin/tchat-cli"
9
9
  },
10
10
  "files": ["bin/", "scripts/"],
11
11
  "scripts": {
12
12
  "postinstall": "node scripts/install.js"
13
13
  },
14
14
  "optionalDependencies": {
15
- "@exonix/tchat-cli-darwin-arm64": "1.0.0",
16
- "@exonix/tchat-cli-darwin-x64": "1.0.0",
17
- "@exonix/tchat-cli-linux-x64": "1.0.0",
18
- "@exonix/tchat-cli-linux-arm64": "1.0.0",
19
- "@exonix/tchat-cli-win32-x64": "1.0.0"
15
+ "@exonix/tchat-cli-darwin-arm64": "1.0.1",
16
+ "@exonix/tchat-cli-darwin-x64": "1.0.1",
17
+ "@exonix/tchat-cli-linux-x64": "1.0.1",
18
+ "@exonix/tchat-cli-linux-arm64": "1.0.1",
19
+ "@exonix/tchat-cli-win32-x64": "1.0.1"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
@@ -38,7 +38,7 @@ function findBinary() {
38
38
  try {
39
39
  const pkgDir = path.dirname(require.resolve(pkgName + "/package.json"));
40
40
  const ext = process.platform === "win32" ? ".exe" : "";
41
- const binPath = path.join(pkgDir, "bin", "tchat" + ext);
41
+ const binPath = path.join(pkgDir, "bin", "tchat-cli" + ext);
42
42
 
43
43
  if (fs.existsSync(binPath)) {
44
44
  return binPath;
File without changes