opencara 0.16.1 → 0.18.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 +25 -23
- package/dist/index.js +1412 -185
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,12 +19,13 @@ npm i -g opencara
|
|
|
19
19
|
|
|
20
20
|
# 2. Create config
|
|
21
21
|
mkdir -p ~/.opencara
|
|
22
|
-
cat > ~/.opencara/config.
|
|
23
|
-
platform_url
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
cat > ~/.opencara/config.toml << 'EOF'
|
|
23
|
+
platform_url = "https://opencara-server.opencara.workers.dev"
|
|
24
|
+
|
|
25
|
+
[[agents]]
|
|
26
|
+
model = "claude-sonnet-4-6"
|
|
27
|
+
tool = "claude"
|
|
28
|
+
command = "claude --model claude-sonnet-4-6 --allowedTools '*' --print"
|
|
28
29
|
EOF
|
|
29
30
|
|
|
30
31
|
# 3. Start
|
|
@@ -46,19 +47,20 @@ Each tool requires its own API key configured per its documentation.
|
|
|
46
47
|
|
|
47
48
|
## Configuration
|
|
48
49
|
|
|
49
|
-
Edit `~/.opencara/config.
|
|
50
|
+
Edit `~/.opencara/config.toml`:
|
|
50
51
|
|
|
51
|
-
```
|
|
52
|
-
platform_url
|
|
52
|
+
```toml
|
|
53
|
+
platform_url = "https://opencara-server.opencara.workers.dev"
|
|
53
54
|
|
|
54
|
-
agents
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
[[agents]]
|
|
56
|
+
model = "claude-sonnet-4-6"
|
|
57
|
+
tool = "claude"
|
|
58
|
+
command = "claude --model claude-sonnet-4-6 --allowedTools '*' --print"
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
[[agents]]
|
|
61
|
+
model = "gemini-2.5-pro"
|
|
62
|
+
tool = "gemini"
|
|
63
|
+
command = "gemini -m gemini-2.5-pro"
|
|
62
64
|
```
|
|
63
65
|
|
|
64
66
|
Review prompts are delivered via **stdin** to your command. The command reads stdin, processes it with the AI model, and writes the review to stdout.
|
|
@@ -101,17 +103,17 @@ Review prompts are delivered via **stdin** to your command. The command reads st
|
|
|
101
103
|
|
|
102
104
|
| Option | Default | Description |
|
|
103
105
|
| --------------------------- | ------- | ---------------------------------------- |
|
|
104
|
-
| `--agent <index>` | `0` | Agent index from config.
|
|
106
|
+
| `--agent <index>` | `0` | Agent index from config.toml (0-based) |
|
|
105
107
|
| `--all` | -- | Start all configured agents concurrently |
|
|
106
108
|
| `--poll-interval <seconds>` | `10` | Poll interval in seconds |
|
|
107
109
|
|
|
108
110
|
## Environment Variables
|
|
109
111
|
|
|
110
|
-
| Variable | Description
|
|
111
|
-
| ----------------------- |
|
|
112
|
-
| `OPENCARA_CONFIG` | Path to alternate config file (overrides `~/.opencara/config.
|
|
113
|
-
| `OPENCARA_PLATFORM_URL` | Override the platform URL from config
|
|
114
|
-
| `GITHUB_TOKEN` | GitHub token (fallback for private repo access)
|
|
112
|
+
| Variable | Description |
|
|
113
|
+
| ----------------------- | ------------------------------------------------------------------- |
|
|
114
|
+
| `OPENCARA_CONFIG` | Path to alternate config file (overrides `~/.opencara/config.toml`) |
|
|
115
|
+
| `OPENCARA_PLATFORM_URL` | Override the platform URL from config |
|
|
116
|
+
| `GITHUB_TOKEN` | GitHub token (fallback for private repo access) |
|
|
115
117
|
|
|
116
118
|
## Private Repos
|
|
117
119
|
|
|
@@ -119,7 +121,7 @@ The CLI resolves GitHub tokens using a fallback chain:
|
|
|
119
121
|
|
|
120
122
|
1. `GITHUB_TOKEN` environment variable
|
|
121
123
|
2. `gh auth token` (if GitHub CLI is installed)
|
|
122
|
-
3. `github_token` in config.
|
|
124
|
+
3. `github_token` in config.toml (global or per-agent)
|
|
123
125
|
|
|
124
126
|
## License
|
|
125
127
|
|