@metatell/bot-cli 0.0.8 → 0.0.10
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 -10
- package/dist/cli.js +1 -1
- package/dist/commands/interactive.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -23,16 +23,16 @@ npm install --save-dev @metatell/bot-cli
|
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
25
|
# インタラクティブモード(デフォルト)
|
|
26
|
-
metatell-
|
|
26
|
+
metatell-bot https://metatell.app/ROOM_ID
|
|
27
27
|
|
|
28
28
|
# 認証トークン付き
|
|
29
|
-
metatell-
|
|
29
|
+
metatell-bot https://metatell.app/ROOM_ID -t "your-auth-token"
|
|
30
30
|
|
|
31
31
|
# カスタムボット名
|
|
32
|
-
metatell-
|
|
32
|
+
metatell-bot https://metatell.app/ROOM_ID -n "MyBot"
|
|
33
33
|
|
|
34
34
|
# デバッグログ有効
|
|
35
|
-
metatell-
|
|
35
|
+
metatell-bot https://metatell.app/ROOM_ID -d
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## コマンド
|
|
@@ -40,9 +40,9 @@ metatell-cli https://metatell.app/ROOM_ID -d
|
|
|
40
40
|
### インタラクティブモード
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
metatell-
|
|
43
|
+
metatell-bot https://metatell.app/ROOM_ID [options]
|
|
44
44
|
# または
|
|
45
|
-
metatell-
|
|
45
|
+
metatell-bot interactive https://metatell.app/ROOM_ID [options]
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
**利用可能なコマンド:**
|
|
@@ -63,13 +63,13 @@ metatell-cli interactive https://metatell.app/ROOM_ID [options]
|
|
|
63
63
|
### 接続テストコマンド
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
metatell-
|
|
66
|
+
metatell-bot connect https://metatell.app/ROOM_ID [options]
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
### ルーム検査コマンド
|
|
70
70
|
|
|
71
71
|
```bash
|
|
72
|
-
metatell-
|
|
72
|
+
metatell-bot inspect https://metatell.app/ROOM_ID [options]
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
## オプション
|
|
@@ -108,8 +108,8 @@ npm run build
|
|
|
108
108
|
npm link
|
|
109
109
|
|
|
110
110
|
# 6. 動作確認
|
|
111
|
-
metatell-
|
|
112
|
-
metatell-
|
|
111
|
+
metatell-bot --version
|
|
112
|
+
metatell-bot --help
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
### 開発時の便利なコマンド
|
package/dist/cli.js
CHANGED
|
@@ -16,7 +16,7 @@ const packageJson = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'
|
|
|
16
16
|
const version = packageJson.version;
|
|
17
17
|
const program = new Command();
|
|
18
18
|
program
|
|
19
|
-
.name('metatell-
|
|
19
|
+
.name('metatell-bot')
|
|
20
20
|
.description('CLI tool for Metatell bot development and testing')
|
|
21
21
|
.version(version);
|
|
22
22
|
// Connect command - Simple connection test
|
|
@@ -20,8 +20,8 @@ export async function startInteractiveMode(url, options) {
|
|
|
20
20
|
client.on('connected', () => {
|
|
21
21
|
console.log('[Connected]');
|
|
22
22
|
});
|
|
23
|
-
client.on('disconnected', (
|
|
24
|
-
console.log('[Disconnected]',
|
|
23
|
+
client.on('disconnected', () => {
|
|
24
|
+
console.log('[Disconnected]', 'Connection closed');
|
|
25
25
|
});
|
|
26
26
|
// chat-messageイベントを使用して、より詳細なメッセージ情報を取得
|
|
27
27
|
client.on('chat-message', (message) => {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metatell/bot-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "CLI tool for Metatell bot development and testing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"metatell-
|
|
7
|
+
"metatell-bot": "./dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"commander": "12.0.0",
|
|
21
21
|
"ink": "5.0.1",
|
|
22
22
|
"react": "18.3.1",
|
|
23
|
-
"@metatell/bot-sdk": "0.0.
|
|
23
|
+
"@metatell/bot-sdk": "0.0.10"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "22.17.2",
|