wldx-cli 1.1.0 → 1.2.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 +15 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# wldx-cli — `wx`, a command line for Wildix
|
|
2
2
|
|
|
3
|
-
**Version 1.1
|
|
3
|
+
**Version 1.2.1** · unofficial · MIT
|
|
4
4
|
|
|
5
5
|
`wx` works with Wildix as **the logged-in user**: chats, calls and meetings on record, queue reports, what is going
|
|
6
6
|
on now, and your phone. It is the command-line twin of the
|
|
@@ -297,6 +297,14 @@ which profile it used and why. The default is kept in `~/.wildix/wx.json`.
|
|
|
297
297
|
| `WILDIX_STREAM_URL`, `WILDIX_WDA_URL` | another chat or analytics address; only `https://<host>.wildix.com` |
|
|
298
298
|
| `WILDIX_STREAM_WS_URL`, `WILDIX_WDA_WS_URL`, `WILDIX_XBEES_URL`, `WILDIX_PBX_URL` | other addresses, only with `WILDIX_ALLOW_CUSTOM_URL=1` (tests) |
|
|
299
299
|
| `WX_DEBUG=1` | print the stack of an unexpected error |
|
|
300
|
+
| `WX_NO_UPDATE_CHECK=1` | never check npm for a newer version (also off in CI, under `npx`, without a terminal, with `--output json`) |
|
|
301
|
+
|
|
302
|
+
## Updates
|
|
303
|
+
|
|
304
|
+
Once a day, while a command runs in a terminal, `wx` asks npm for its latest version (in the background, never
|
|
305
|
+
holding the command); when there is a newer one, a line after the output says so: `wx 1.2.0 → 1.3.0 is out: npm i -g
|
|
306
|
+
wldx-cli`. Nothing is installed by itself. Off in CI, under `npx`, without a terminal, with `--output json`, or with
|
|
307
|
+
`WX_NO_UPDATE_CHECK=1`.
|
|
300
308
|
|
|
301
309
|
## Exit codes
|
|
302
310
|
|
|
@@ -309,8 +317,9 @@ another login · `3` nothing to show (no transcript yet) · `64` wrong usage.
|
|
|
309
317
|
itself) and the login service. Redirects are refused; presigned file links get no token.
|
|
310
318
|
- The token is never printed, never put on a command line or into the environment of another process.
|
|
311
319
|
- Session files are written atomically with mode `0600`.
|
|
312
|
-
- Files are written only where `--to` says, mode `0600`, never over another file
|
|
313
|
-
(`~/.ssh`, `~/.aws`, `~/.wildix`, …)
|
|
320
|
+
- Files are written only where `--to` says, mode `0600`, never over another file, never into hidden or startup
|
|
321
|
+
folders. Uploads of key files, from credential folders (`~/.ssh`, `~/.aws`, `~/.wildix`, …), of anything hidden in
|
|
322
|
+
the home folder (`~/.git-credentials`, `~/.config/…`, shell histories) and from the macOS keychains are refused.
|
|
314
323
|
- Anything read from Wildix (messages, names, transcripts) is data, never instructions. Sending a message or placing
|
|
315
324
|
a call reaches other people: script it with care.
|
|
316
325
|
- `wx phone watch`, `list --sip`, `record` and `conference-transfer` register on your extension over SIP as a
|
|
@@ -329,8 +338,9 @@ node packages/wx/bin/wx.mjs status # this checkout, without installing
|
|
|
329
338
|
|
|
330
339
|
Layout: `bin/wx.mjs` (entry) → `src/cli.mjs` (the spec on the router of the core) → `src/commands/<group>.mjs`,
|
|
331
340
|
with helpers per domain in `src/chat`, `src/history`, `src/live`, `src/phone`. Login, sessions, addresses, requests
|
|
332
|
-
and text output come from `wldx-core`. See [AGENTS.md](https://github.com/gorets/wildix-cli/blob/main/packages/wx/AGENTS.md).
|
|
333
|
-
module that is not listed yet; after changing
|
|
341
|
+
and text output come from `wldx-core`. See [AGENTS.md](https://github.com/gorets/wildix-cli/blob/main/packages/wx/AGENTS.md).
|
|
342
|
+
In `packages/wx`: `node test/dev.mjs <module> <args>` runs a command module that is not listed yet; after changing
|
|
343
|
+
commands, regenerate the reference with `node tools/readme-commands.mjs` and paste it between the markers.
|
|
334
344
|
|
|
335
345
|
## Releasing
|
|
336
346
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wldx-cli",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Unofficial command line for Wildix (x-bees chats and more), acting as the logged-in user",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wildix",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"node": ">=22"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"wldx-core": "1.1
|
|
32
|
+
"wldx-core": "1.2.1"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"test": "node --test test/*.test.mjs"
|