@levr-one/cli 0.2.0 → 0.3.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 -5
- package/dist/addHandler-boWTd9yY.js +688 -0
- package/dist/cli.js +68 -40
- package/dist/{currentHandler-Dzg819Np.js → currentHandler-Bm7GFMkj.js} +1 -1
- package/dist/{env-hpzB56ay.js → env-NxtzJJPk.js} +1 -1
- package/dist/{listHandler-DDd6scZ8.js → listHandler-EsB3AeOB.js} +6 -4
- package/dist/{loginHandler-BSrs0mHq.js → loginHandler-BfIUQJrC.js} +5 -4
- package/dist/{logoutHandler-jWPGhzls.js → logoutHandler-BC8laIAB.js} +2 -2
- package/dist/{pushHandler-DG96IOVd.js → pushHandler-DBBa6hKz.js} +6 -6
- package/dist/{resolve-token-DizP2xRY.js → resolve-token-BRPrqdG-.js} +3 -3
- package/dist/{resolve-workspace-EpjKI71z.js → resolve-workspace-Dj7jgtE3.js} +2 -2
- package/dist/{sdk-client-BCOB2qNU.js → sdk-client-BeE6mXns.js} +177 -1
- package/dist/{selectHandler-CkIbO2qH.js → selectHandler-XOUHdyea.js} +5 -5
- package/dist/{statusHandler-D6YAxhoN.js → statusHandler-BaQB40t7.js} +3 -3
- package/dist/{token-refresh-BYu4XO3G.js → token-refresh-Cz-FqDtC.js} +1 -1
- package/package.json +3 -1
- package/dist/initHandler-JN92u8td.js +0 -51
- package/dist/listHandler-5L3YE52T.js +0 -8
- package/dist/loginHandler-uZCrwdcR.js +0 -7
- /package/dist/{workspace-store-BcyMJAht.js → workspace-store-4hfvsEHS.js} +0 -0
package/README.md
CHANGED
|
@@ -17,14 +17,25 @@ replaces the `levr` bin from the deprecated `@levr-one/setup` package.
|
|
|
17
17
|
|
|
18
18
|
## Get started
|
|
19
19
|
|
|
20
|
+
Pushing test results needs authentication and nothing else — log in once
|
|
21
|
+
(or set `LEVR_TOKEN` in CI):
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
levr auth login # browser PKCE (or --device-code for SSH/headless)
|
|
25
|
+
levr push ./results.xml
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Using an AI client (Claude Desktop/Code, Cursor, Windsurf, Zed)? Wire the
|
|
29
|
+
Levr MCP server into it with one command — no login needed; the client opens
|
|
30
|
+
a browser to authorize the first time it connects:
|
|
31
|
+
|
|
20
32
|
```bash
|
|
21
|
-
npx @levr-one/cli
|
|
33
|
+
npx @levr-one/cli mcp add # detect installed clients and pick interactively
|
|
22
34
|
```
|
|
23
35
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
re-opens the browser unnecessarily.
|
|
36
|
+
Config edits preserve your existing MCP servers and comments, and re-running
|
|
37
|
+
is a no-op. Use `--all`, `--client <id>`, or `--yes` for non-interactive
|
|
38
|
+
runs and `--dry-run` to preview.
|
|
28
39
|
|
|
29
40
|
### Shell completion (optional)
|
|
30
41
|
|
|
@@ -166,6 +177,7 @@ All configuration is via environment variables. Flags take precedence.
|
|
|
166
177
|
| `LEVR_TOKEN` | Personal Access Token (for CI / headless) | |
|
|
167
178
|
| `LEVR_URL` | API base URL (`--url` flag > `LEVR_URL` > URL stored at login > default) | `https://api.levr.one` |
|
|
168
179
|
| `LEVR_AUTH_URL` | Auth server URL for the browser login page (derived from the API URL when unset) | derived |
|
|
180
|
+
| `LEVR_MCP_URL` | MCP server URL written by `levr mcp add` (derived from the API URL when unset) | derived |
|
|
169
181
|
| `LEVR_TEAM_ID` | Default team ID (optional; server resolves from automation source or workspace default) | |
|
|
170
182
|
| `LEVR_SOURCE` | Automation source name override (groups imports, remembers team) | |
|
|
171
183
|
|