@gtchakama/wa-tui 1.4.4 → 1.5.0
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 +6 -3
- package/package.json +3 -2
- package/src/ui/renderer.js +1176 -266
- package/src/ui/state.js +3 -1
- package/src/utils/notifyDesktop.js +82 -0
- package/src/whatsapp/service.js +186 -4
package/README.md
CHANGED
|
@@ -13,11 +13,11 @@ Session data and cache are stored under `.wwebjs_auth` and `.wwebjs_cache` in th
|
|
|
13
13
|
|
|
14
14
|
### Homebrew (macOS / Linux)
|
|
15
15
|
|
|
16
|
-
Uses [Homebrew](https://brew.sh/) so `wa-tui` is on your PATH like any other CLI. This repository
|
|
16
|
+
Uses [Homebrew](https://brew.sh/) so `wa-tui` is on your PATH like any other CLI. This repository contains [`Formula/wa-tui.rb`](Formula/wa-tui.rb), which installs the published npm tarball and pulls in **Node** as a dependency. Because the GitHub repository is named `wa-tui` rather than `homebrew-wa-tui`, tap it with an explicit URL:
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
brew tap gtchakama/wa-tui
|
|
20
|
-
brew install wa-tui
|
|
19
|
+
brew tap gtchakama/wa-tui https://github.com/gtchakama/wa-tui
|
|
20
|
+
brew install gtchakama/wa-tui/wa-tui
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Upgrade later with `brew upgrade wa-tui`. You still need **Chrome** or **Chromium** locally (see Requirements).
|
|
@@ -89,10 +89,13 @@ Run the command from whatever directory you want to use for WhatsApp session fil
|
|
|
89
89
|
| -------- | ----------- |
|
|
90
90
|
| `WA_TUI_RESIZE` | Set to `1` to enable resize-related behavior used during development (`npm run start:resize`). |
|
|
91
91
|
| `WA_TUI_NO_SOUND` | Set to `1` to disable the incoming-message notification sound. |
|
|
92
|
+
| `WA_TUI_NO_DESKTOP_NOTIFY` | Set to `1` to disable desktop notifications for incoming messages in chats you are not currently viewing. |
|
|
92
93
|
| `WA_TUI_SOUND` | Optional path to an audio file (macOS: `afplay`; Linux: `paplay` / `aplay`). Overrides the default tone. |
|
|
93
94
|
|
|
94
95
|
Incoming messages play a short sound when you are **not** viewing that chat. Defaults: **macOS** — `Ping.aiff` via `afplay`; **Windows** — short two-tone console beep; **Linux** — freedesktop `complete.oga` or `message.oga`, then WAV fallback; otherwise the terminal bell. There is no sound for your own messages or for messages in the chat you currently have open.
|
|
95
96
|
|
|
97
|
+
Desktop notifications are also sent for incoming messages outside the chat you currently have open. They are best-effort: **macOS** uses `osascript`, **Linux** uses `notify-send`, and **Windows** uses a small PowerShell balloon notification.
|
|
98
|
+
|
|
96
99
|
## Scripts (development)
|
|
97
100
|
|
|
98
101
|
| Command | Description |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtchakama/wa-tui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Terminal UI for WhatsApp Web (blessed + whatsapp-web.js)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -45,5 +45,6 @@
|
|
|
45
45
|
"puppeteer-core": "^24.40.0",
|
|
46
46
|
"qrcode-terminal": "^0.12.0",
|
|
47
47
|
"whatsapp-web.js": "^1.34.6"
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"packageManager": "pnpm@10.32.1+sha512.a706938f0e89ac1456b6563eab4edf1d1faf3368d1191fc5c59790e96dc918e4456ab2e67d613de1043d2e8c81f87303e6b40d4ffeca9df15ef1ad567348f2be"
|
|
49
50
|
}
|