@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 +20 -20
- package/package.json +7 -7
- package/scripts/install.js +1 -1
- /package/bin/{tchat → tchat-cli} +0 -0
package/README.md
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
# @exonix/tchat-cli
|
|
2
2
|
|
|
3
|
-
|
|
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 "
|
|
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`
|
|
38
|
+
| Flag | Default | Description |
|
|
39
|
+
|------|---------|-------------|
|
|
40
|
+
| `--env` | `test` | `test` or `prod` |
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Docs
|
|
43
43
|
|
|
44
|
-
|
|
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.
|
|
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.
|
|
16
|
-
"@exonix/tchat-cli-darwin-x64": "1.0.
|
|
17
|
-
"@exonix/tchat-cli-linux-x64": "1.0.
|
|
18
|
-
"@exonix/tchat-cli-linux-arm64": "1.0.
|
|
19
|
-
"@exonix/tchat-cli-win32-x64": "1.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",
|
package/scripts/install.js
CHANGED
|
@@ -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;
|
/package/bin/{tchat → tchat-cli}
RENAMED
|
File without changes
|