wa-terminal 0.0.0-stage → 1.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -2
  3. package/bin/wa.js +41 -0
  4. package/package.json +36 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Oketch Dishon
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,23 @@
1
- # Temporary Holding Version
1
+ # wa-terminal
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ WhatsApp in your terminal: a full-screen chat app plus a scriptable CLI.
4
+
5
+ ```sh
6
+ npm i -g wa-terminal
7
+ wa login # scan the QR code with WhatsApp on your phone
8
+ wa # open the chat app
9
+ ```
10
+
11
+ Update the same way: `npm i -g wa-terminal`. wa tells you in its header when
12
+ a new version is out. Keep it current, because WhatsApp stops accepting
13
+ old versions.
14
+
15
+ Works on Windows, macOS and Linux (x64 and arm64). Nothing to compile:
16
+ npm installs a prebuilt binary for your machine.
17
+
18
+ Source, issues and the full command list:
19
+ https://github.com/INTERDICTOR1/wa-cli
20
+
21
+ wa-terminal is built on [whatsmeow](https://github.com/tulir/whatsmeow) and
22
+ continues [codebyoketch/wa-cli](https://github.com/codebyoketch/wa-cli).
23
+ It is not affiliated with WhatsApp or Meta.
package/bin/wa.js ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+ // Runs the native wa binary that npm installed for this platform (one of
3
+ // the @interdictor/wa-tui-<os>-<cpu> packages listed in optionalDependencies).
4
+ "use strict";
5
+
6
+ const { spawnSync } = require("child_process");
7
+ const fs = require("fs");
8
+
9
+ const pkg = `@interdictor/wa-tui-${process.platform}-${process.arch}`;
10
+ const exe = process.platform === "win32" ? "wa.exe" : "wa";
11
+
12
+ let bin;
13
+ try {
14
+ bin = require.resolve(`${pkg}/bin/${exe}`);
15
+ } catch {
16
+ console.error(
17
+ `wa-terminal: no wa binary for ${process.platform}-${process.arch}.\n` +
18
+ `Reinstall with optional dependencies enabled: npm i -g wa-terminal`
19
+ );
20
+ process.exit(1);
21
+ }
22
+
23
+ if (process.platform !== "win32") {
24
+ try {
25
+ fs.accessSync(bin, fs.constants.X_OK);
26
+ } catch {
27
+ try {
28
+ fs.chmodSync(bin, 0o755);
29
+ } catch {}
30
+ }
31
+ }
32
+
33
+ const res = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
34
+ if (res.error) {
35
+ console.error(`wa-terminal: could not start ${bin}: ${res.error.message}`);
36
+ process.exit(1);
37
+ }
38
+ if (res.signal) {
39
+ process.kill(process.pid, res.signal);
40
+ }
41
+ process.exit(res.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "wa-terminal",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.1",
4
+ "description": "WhatsApp in your terminal: a full-screen chat app and a scriptable CLI",
5
+ "keywords": [
6
+ "whatsapp",
7
+ "tui",
8
+ "cli",
9
+ "terminal",
10
+ "chat"
11
+ ],
12
+ "homepage": "https://github.com/INTERDICTOR1/wa-cli#readme",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/INTERDICTOR1/wa-cli.git"
16
+ },
17
+ "bugs": "https://github.com/INTERDICTOR1/wa-cli/issues",
18
+ "license": "MIT",
19
+ "bin": {
20
+ "wa": "bin/wa.js"
21
+ },
22
+ "files": [
23
+ "bin",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "engines": {
28
+ "node": ">=16"
29
+ },
30
+ "optionalDependencies": {
31
+ "@interdictor/wa-tui-win32-x64": "1.1.1",
32
+ "@interdictor/wa-tui-win32-arm64": "1.1.1",
33
+ "@interdictor/wa-tui-darwin-x64": "1.1.1",
34
+ "@interdictor/wa-tui-darwin-arm64": "1.1.1",
35
+ "@interdictor/wa-tui-linux-x64": "1.1.1",
36
+ "@interdictor/wa-tui-linux-arm64": "1.1.1"
37
+ }
38
+ }