pi-remote-feishu 0.1.0 → 0.1.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 +7 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,22 +24,22 @@ npm install --ignore-scripts
|
|
|
24
24
|
npm run build
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Create a config template:
|
|
27
|
+
Create a config template (replace `<your-pi-project>` with your Pi working directory):
|
|
28
28
|
|
|
29
29
|
```powershell
|
|
30
|
-
node .\dist\bin\pi-remote-feishu.js init --cwd
|
|
30
|
+
node .\dist\bin\pi-remote-feishu.js init --cwd <your-pi-project>
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Edit:
|
|
34
34
|
|
|
35
35
|
```text
|
|
36
|
-
|
|
36
|
+
<your-pi-project>\.pi\feishu.json
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Start the bridge:
|
|
40
40
|
|
|
41
41
|
```powershell
|
|
42
|
-
node .\dist\bin\pi-remote-feishu.js serve --cwd
|
|
42
|
+
node .\dist\bin\pi-remote-feishu.js serve --cwd <your-pi-project>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
You can also pass credentials through environment variables:
|
|
@@ -47,7 +47,7 @@ You can also pass credentials through environment variables:
|
|
|
47
47
|
```powershell
|
|
48
48
|
$env:FEISHU_APP_ID="cli_xxx"
|
|
49
49
|
$env:FEISHU_APP_SECRET="xxx"
|
|
50
|
-
node .\dist\bin\pi-remote-feishu.js serve --cwd
|
|
50
|
+
node .\dist\bin\pi-remote-feishu.js serve --cwd <your-pi-project>
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## CLI Commands
|
|
@@ -55,7 +55,7 @@ node .\dist\bin\pi-remote-feishu.js serve --cwd D:\develop\pi-main
|
|
|
55
55
|
Check config and WebSocket connectivity:
|
|
56
56
|
|
|
57
57
|
```powershell
|
|
58
|
-
node .\dist\bin\pi-remote-feishu.js doctor --cwd
|
|
58
|
+
node .\dist\bin\pi-remote-feishu.js doctor --cwd <your-pi-project>
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
Send a test message when you know the chat id:
|
|
@@ -67,7 +67,7 @@ node .\dist\bin\pi-remote-feishu.js send-test --chat-id <chatId> --text "hello"
|
|
|
67
67
|
Log incoming event summaries:
|
|
68
68
|
|
|
69
69
|
```powershell
|
|
70
|
-
node .\dist\bin\pi-remote-feishu.js serve --cwd
|
|
70
|
+
node .\dist\bin\pi-remote-feishu.js serve --cwd <your-pi-project> --debug-events
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
or configure:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-remote-feishu",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Remote control Pi Agent via Feishu (飞书) chat: WebSocket bridge, cards, attachments and file sending.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"websocket"
|
|
16
16
|
],
|
|
17
17
|
"bin": {
|
|
18
|
-
"pi-remote-feishu": "
|
|
18
|
+
"pi-remote-feishu": "dist/bin/pi-remote-feishu.js"
|
|
19
19
|
},
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"types": "./dist/index.d.ts",
|