@pretense/cli 0.3.1 → 0.4.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 CHANGED
@@ -14,7 +14,10 @@ npm install -g @pretense/cli
14
14
  # Initialize config in your project
15
15
  pretense init
16
16
 
17
- # Start the proxy (default port 9339)
17
+ # Save a dashboard API key (read_write for mutation via proxy), or set PRETENSE_API_KEY
18
+ pretense login --key YOUR_KEY
19
+
20
+ # Start the proxy (default port 9339) — validates key before binding
18
21
  pretense start
19
22
 
20
23
  # Point your AI tools at the proxy
@@ -32,19 +35,29 @@ pretense reverse mutated-output.ts
32
35
 
33
36
  # View audit log
34
37
  pretense audit --json
38
+
39
+ # Plan / quota (live when backend reachable; falls back offline)
40
+ pretense status
35
41
  ```
36
42
 
37
43
  ## Commands
38
44
 
39
- | Command | Description |
40
- |---------|-------------|
41
- | `pretense init` | Scan cwd, create .pretense/ config |
42
- | `pretense start` | Start proxy on :9339 |
43
- | `pretense scan <file\|dir>` | Scan for identifiers + secrets |
44
- | `pretense mutate <file>` | Mutate and print to stdout |
45
- | `pretense reverse <file>` | Reverse using stored map |
46
- | `pretense audit` | Print audit log |
47
- | `pretense version` | Print version |
45
+ | Command | Description |
46
+ | --------------------------- | -------------------------------------------------------------- |
47
+ | `pretense init` | Scan cwd, create `.pretense/` config |
48
+ | `pretense login [--key …]` | Save dashboard API key to `~/.pretense/config.json` |
49
+ | `pretense logout` | Remove saved dashboard API key |
50
+ | `pretense start` | Validate key, start proxy on `:9339` |
51
+ | `pretense scan <file\|dir>` | Scan for identifiers + secrets |
52
+ | `pretense mutate <file>` | Redact scanner hits (secrets/PII), mutate identifiers → stdout |
53
+ | `pretense reverse <file>` | Reverse using stored map |
54
+ | `pretense audit` | Print audit log |
55
+ | `pretense status` | Plan, quota, usage (`usage` is an alias) |
56
+ | `pretense credits` | Remaining mutation budget (`tokens` is an alias) |
57
+ | `pretense upgrade` | Compare plans / upgrade |
58
+ | `pretense version` | Print version |
59
+
60
+ Env: **`PRETENSE_API_KEY`**, **`PRETENSE_API_URL`**, **`PRETENSE_API_TIMEOUT_MS`** (backend HTTP timeout, default 15s).
48
61
 
49
62
  ## Exit Codes
50
63