@compilr-dev/cli 0.7.1 → 0.7.2
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.
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -100,20 +100,24 @@ Options:
|
|
|
100
100
|
--version, -v Show version number
|
|
101
101
|
--help, -h Show this help
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
API Keys:
|
|
104
|
+
Run /init inside the REPL to set up API keys (encrypted local storage).
|
|
105
|
+
Alternatively, set environment variables:
|
|
106
|
+
ANTHROPIC_API_KEY Claude provider
|
|
107
|
+
OPENAI_API_KEY OpenAI provider
|
|
108
|
+
GOOGLE_AI_API_KEY Gemini provider
|
|
109
|
+
|
|
110
|
+
Other Environment Variables:
|
|
107
111
|
NO_COLOR Disable ANSI colors
|
|
108
112
|
COMPILR_NO_UPDATE_CHECK Skip the npm registry update check at startup
|
|
109
113
|
CI Auto-skips the update check
|
|
110
114
|
|
|
111
115
|
Examples:
|
|
112
|
-
compilr
|
|
113
|
-
compilr --model claude-sonnet-4-6
|
|
116
|
+
compilr Start with auto-detected provider
|
|
117
|
+
compilr --model claude-sonnet-4-6 Use a specific model
|
|
114
118
|
compilr --provider gemini --model gemini-2.0-flash
|
|
115
|
-
compilr --minimal --show-filtering
|
|
116
|
-
compilr --update
|
|
119
|
+
compilr --minimal --show-filtering Minimal tools with analysis
|
|
120
|
+
compilr --update Check for updates
|
|
117
121
|
`);
|
|
118
122
|
}
|
|
119
123
|
// =============================================================================
|
|
@@ -148,7 +148,7 @@ export function getApiKey(provider) {
|
|
|
148
148
|
const envVarMap = {
|
|
149
149
|
anthropic: 'ANTHROPIC_API_KEY',
|
|
150
150
|
openai: 'OPENAI_API_KEY',
|
|
151
|
-
google: '
|
|
151
|
+
google: 'GOOGLE_AI_API_KEY',
|
|
152
152
|
ollama: '', // No key needed
|
|
153
153
|
together: 'TOGETHER_API_KEY',
|
|
154
154
|
groq: 'GROQ_API_KEY',
|
|
@@ -239,7 +239,7 @@ export function isKeyFromEnv(provider) {
|
|
|
239
239
|
const envVarMap = {
|
|
240
240
|
anthropic: 'ANTHROPIC_API_KEY',
|
|
241
241
|
openai: 'OPENAI_API_KEY',
|
|
242
|
-
google: '
|
|
242
|
+
google: 'GOOGLE_AI_API_KEY',
|
|
243
243
|
ollama: '',
|
|
244
244
|
together: 'TOGETHER_API_KEY',
|
|
245
245
|
groq: 'GROQ_API_KEY',
|