@levr-one/cli 0.1.1 → 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 +32 -8
- package/dist/addHandler-boWTd9yY.js +688 -0
- package/dist/cli.js +105 -28
- package/dist/env-NxtzJJPk.js +102 -0
- package/dist/listHandler-EsB3AeOB.js +51 -0
- package/dist/{loginHandler-BnokItPo.js → loginHandler-BfIUQJrC.js} +48 -23
- package/dist/{logoutHandler-C3X9rqLP.js → logoutHandler-BC8laIAB.js} +1 -1
- package/dist/{pushHandler-C3DteESD.js → pushHandler-DBBa6hKz.js} +5 -5
- package/dist/resolve-token-BRPrqdG-.js +48 -0
- package/dist/{resolve-workspace-BPMkU_SK.js → resolve-workspace-Dj7jgtE3.js} +1 -1
- package/dist/{sdk-client-rpUEykDw.js → sdk-client-BeE6mXns.js} +177 -1
- package/dist/{selectHandler-BjM4LKYW.js → selectHandler-XOUHdyea.js} +4 -4
- package/dist/{statusHandler-LfrSN4uh.js → statusHandler-BaQB40t7.js} +9 -3
- package/dist/{token-refresh-Pl6Adngb.js → token-refresh-Cz-FqDtC.js} +1 -1
- package/package.json +3 -1
- package/dist/credentials-Ciq9mA7N.js +0 -54
- package/dist/listHandler-gfnJbj60.js +0 -44
- package/dist/resolve-token-CQU55U6J.js +0 -33
- /package/dist/{currentHandler-DpWIqCBm.js → currentHandler-Bm7GFMkj.js} +0 -0
package/README.md
CHANGED
|
@@ -12,7 +12,30 @@ npm install -g @levr-one/cli # global install for daily use
|
|
|
12
12
|
npx @levr-one/cli --help
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
The package is self-contained — no peer setup required.
|
|
15
|
+
The package is self-contained — no peer setup required. A global install
|
|
16
|
+
replaces the `levr` bin from the deprecated `@levr-one/setup` package.
|
|
17
|
+
|
|
18
|
+
## Get started
|
|
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
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx @levr-one/cli mcp add # detect installed clients and pick interactively
|
|
34
|
+
```
|
|
35
|
+
|
|
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.
|
|
16
39
|
|
|
17
40
|
### Shell completion (optional)
|
|
18
41
|
|
|
@@ -149,13 +172,14 @@ withEnv(["LEVR_TOKEN=${LEVR_TOKEN}"]) {
|
|
|
149
172
|
|
|
150
173
|
All configuration is via environment variables. Flags take precedence.
|
|
151
174
|
|
|
152
|
-
| Variable | Description | Default
|
|
153
|
-
| --------------- | --------------------------------------------------------------------------------------- |
|
|
154
|
-
| `LEVR_TOKEN` | Personal Access Token (for CI / headless) |
|
|
155
|
-
| `LEVR_URL` | API base URL
|
|
156
|
-
| `LEVR_AUTH_URL` | Auth server URL
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
175
|
+
| Variable | Description | Default |
|
|
176
|
+
| --------------- | --------------------------------------------------------------------------------------- | ---------------------- |
|
|
177
|
+
| `LEVR_TOKEN` | Personal Access Token (for CI / headless) | |
|
|
178
|
+
| `LEVR_URL` | API base URL (`--url` flag > `LEVR_URL` > URL stored at login > default) | `https://api.levr.one` |
|
|
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 |
|
|
181
|
+
| `LEVR_TEAM_ID` | Default team ID (optional; server resolves from automation source or workspace default) | |
|
|
182
|
+
| `LEVR_SOURCE` | Automation source name override (groups imports, remembers team) | |
|
|
159
183
|
|
|
160
184
|
## Troubleshooting
|
|
161
185
|
|