radar-cc 0.1.1 → 0.1.3
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 +15 -5
- package/dist/cli/index.js +540 -87
- package/dist/cli/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# radar-cc
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Intent alignment checker for Claude Code. Radar watches Claude Code's OpenTelemetry stream and tells you — in a second terminal pane — whether your prompt was clear before Claude starts, and whether Claude stayed on target after it finishes.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
7
|
-
- Node.js >=
|
|
8
|
-
-
|
|
7
|
+
- Node.js >= 22
|
|
8
|
+
- An Anthropic API key
|
|
9
9
|
|
|
10
10
|
## Install
|
|
11
11
|
|
|
@@ -14,7 +14,13 @@ npm install -g radar-cc
|
|
|
14
14
|
radar setup
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
`radar setup` writes the required OTel environment variables to `~/.claude/settings.json
|
|
17
|
+
`radar setup` writes the required OTel environment variables to `~/.claude/settings.json` and walks you through storing your Anthropic API key — either on local disk or in 1Password. Restart Claude Code after running it.
|
|
18
|
+
|
|
19
|
+
You can also pass the key directly to skip the prompt:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
radar setup --api-key <your-key>
|
|
23
|
+
```
|
|
18
24
|
|
|
19
25
|
## Usage
|
|
20
26
|
|
|
@@ -88,12 +94,16 @@ These are written to the `env` block in `~/.claude/settings.json`. If Radar is n
|
|
|
88
94
|
## Options
|
|
89
95
|
|
|
90
96
|
```
|
|
97
|
+
radar setup [options]
|
|
98
|
+
|
|
99
|
+
-k, --api-key <key> API key to store (skips the interactive prompt)
|
|
100
|
+
|
|
91
101
|
radar watch [options]
|
|
92
102
|
|
|
93
103
|
-p, --port <number> OTLP listener port (default: 4820)
|
|
94
104
|
-t, --timeout <ms> Turn boundary silence window (default: 5000)
|
|
95
105
|
-s, --threshold <score> Ambiguity score threshold 0.0–1.0 (default: 0.6)
|
|
96
|
-
-k, --api-key <key> Anthropic API key (
|
|
106
|
+
-k, --api-key <key> Anthropic API key (overrides all stored sources)
|
|
97
107
|
```
|
|
98
108
|
|
|
99
109
|
## License
|