@sealant/mend 0.8.0 → 0.10.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 +17 -9
- package/dist/dashboard.js +397 -282
- package/dist/login.js +240 -0
- package/dist/main.js +184 -134
- package/dist/review.js +172 -87
- package/dist/shared.js +8 -0
- package/dist/tui-theme.js +33 -22
- package/dist/workbench-events.js +71 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -88,22 +88,30 @@ mend doctor read-only checklist of this machine's setu
|
|
|
88
88
|
## Signing in
|
|
89
89
|
|
|
90
90
|
```
|
|
91
|
-
mend login #
|
|
92
|
-
mend login --url https://mend.example.com
|
|
93
|
-
mend logout
|
|
91
|
+
mend login # opens the browser at <server>/authorize; press Authorize there
|
|
92
|
+
mend login --url https://mend.example.com
|
|
93
|
+
mend logout # revokes this terminal's device token and forgets it
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
+
`mend login` opens the browser at `<server>/authorize?code=…` and waits, using the server already
|
|
97
|
+
configured (`--url`, `MEND_URL`, or the config file). Only a fresh machine with nothing set asks for
|
|
98
|
+
the URL, with Enter accepting `http://localhost:3105`. Sign in there if needed, check that the code
|
|
99
|
+
on the page matches the one in the terminal, and press **Authorize**. The CLI receives a device
|
|
100
|
+
token of its own, the same revocable kind a paired phone holds, listed under Settings → Devices. No
|
|
101
|
+
password is ever typed into the terminal. Over SSH the browser does not open by itself; open the
|
|
102
|
+
printed URL on any signed-in device instead.
|
|
103
|
+
|
|
96
104
|
The token is stored 0600 in the CLI config below; every command uses it until `mend logout`. On a
|
|
97
105
|
dev instance with `MEND_STATIC_TOKEN` set, `MEND_TOKEN=<that value>` also works.
|
|
98
106
|
|
|
99
107
|
## Configuration
|
|
100
108
|
|
|
101
|
-
| Source | What
|
|
102
|
-
| ------------------------- |
|
|
103
|
-
| `MEND_URL` | The Mend server (default `http://localhost:3105`)
|
|
104
|
-
| `MEND_TOKEN` | Bearer token for that server (normally written by `mend login`)
|
|
105
|
-
| `MEND_DETACH_KEY` | Set to `none` when an outer multiplexer detaches
|
|
106
|
-
| `~/.config/mend/cli.json` | `{ "url": ..., "token": ... }` — env vars win; a pre-XDG `~/.mend/cli.json` keeps working |
|
|
109
|
+
| Source | What |
|
|
110
|
+
| ------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
111
|
+
| `MEND_URL` | The Mend server (default `http://localhost:3105`) |
|
|
112
|
+
| `MEND_TOKEN` | Bearer token for that server (normally written by `mend login`) |
|
|
113
|
+
| `MEND_DETACH_KEY` | Set to `none` when an outer multiplexer detaches |
|
|
114
|
+
| `~/.config/mend/cli.json` | `{ "url": ..., "token": ..., "deviceId": ... }` — env vars win; a pre-XDG `~/.mend/cli.json` keeps working |
|
|
107
115
|
|
|
108
116
|
## Herdr
|
|
109
117
|
|