@andocorp/cli 0.5.14 → 0.5.16

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 (3) hide show
  1. package/README.md +14 -8
  2. package/dist/cli.js +52 -37
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -4,7 +4,8 @@
4
4
  public API through `@andocorp/sdk` and an Ando API key.
5
5
 
6
6
  ```sh
7
- ando login # paste a key at a hidden prompt
7
+ ando login # sign in via browser (grants messages + realtime:read)
8
+ ando login --paste # or paste an existing API key at a hidden prompt
8
9
  ando send '#deploys' "v41 is out"
9
10
  pytest 2>&1 | ando send '#ci' --code # standard input, as a code block
10
11
  ando send '#deploys' "rolled back" --thread <message-id>
@@ -80,14 +81,19 @@ says if anything is missing, or if Ubuntu is stopping the sandbox.
80
81
 
81
82
  ## Keys
82
83
 
83
- Create a key in Ando's settings with the `messages:read` and `messages:write`
84
- scopes. The key posts as its member, and that member must belong to the
85
- channel. `ando login` checks the key with one read and saves it with the API
86
- URL to `$XDG_CONFIG_HOME/ando/cli.json` (`~/.config/ando/cli.json` by
87
- default), readable only by you. Use `ando login --key-stdin` to pipe a key in.
84
+ Run `ando login` to sign in through your browser (SSH-friendly: press Enter to
85
+ open on a local desktop, or open the printed link and verify the 6-character
86
+ code on any device). Browser sign-in mints a scoped member API key
87
+ (`messages:read`, `messages:write`, `realtime:read`), checks workroom realtime
88
+ access upfront, and saves it owner-only (`0600`) to
89
+ `$XDG_CONFIG_HOME/ando/cli.json` (`~/.config/ando/cli.json` by default).
88
90
 
89
- `ANDO_API_KEY`, `ANDO_API_URL`, `ANDO_MCP_URL` and `ANDO_WEB_URL` override the saved values.
90
- The key is never printed, including in errors and `--json` output.
91
+ To use an existing key created in Ando's settings, run `ando login --paste`
92
+ (hidden prompt) or `ando login --key-stdin` (piped stdin).
93
+
94
+ `ANDO_API_KEY`, `ANDO_API_URL`, `ANDO_CONVEX_URL`, `ANDO_MCP_URL` and
95
+ `ANDO_WEB_URL` override the saved values. The key is never printed, including in
96
+ errors and `--json` output.
91
97
 
92
98
  ## Wiki disk sync
93
99