@compilr-dev/cli 0.5.10 → 0.5.11

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
@@ -883,12 +883,33 @@ async function main() {
883
883
  // Provider Detection
884
884
  // =============================================================================
885
885
  function detectProvider() {
886
+ // Check env vars first (fastest)
886
887
  if (process.env.ANTHROPIC_API_KEY)
887
888
  return 'claude';
888
889
  if (process.env.OPENAI_API_KEY)
889
890
  return 'openai';
890
891
  if (process.env.GOOGLE_AI_API_KEY)
891
892
  return 'gemini';
893
+ // Check credential store (keys set via /keys)
894
+ if (hasApiKey('anthropic'))
895
+ return 'claude';
896
+ if (hasApiKey('openai'))
897
+ return 'openai';
898
+ if (hasApiKey('google'))
899
+ return 'gemini';
900
+ if (hasApiKey('together'))
901
+ return 'together';
902
+ if (hasApiKey('groq'))
903
+ return 'groq';
904
+ if (hasApiKey('fireworks'))
905
+ return 'fireworks';
906
+ if (hasApiKey('perplexity'))
907
+ return 'perplexity';
908
+ if (hasApiKey('openrouter'))
909
+ return 'openrouter';
910
+ // Ollama doesn't need a key — check if it's likely available
911
+ if (hasApiKey('ollama'))
912
+ return 'ollama';
892
913
  // Default to claude
893
914
  return 'claude';
894
915
  }
@@ -126,7 +126,7 @@ export class OnboardingWizardOverlayV2 extends BaseOverlayV2 {
126
126
  placeholder: projectsPath,
127
127
  initialValue: projectsPath,
128
128
  });
129
- this.minHeight = 22;
129
+ this.minHeight = 25;
130
130
  }
131
131
  // ===========================================================================
132
132
  // Rendering
@@ -272,7 +272,7 @@ export class OnboardingWizardOverlayV2 extends BaseOverlayV2 {
272
272
  }
273
273
  renderStepApiKeys(s) {
274
274
  const lines = [];
275
- lines.push(` ${s.secondary('Step 2: LLM API Keys')}`);
275
+ lines.push(` ${s.secondary('LLM API Keys')}`);
276
276
  lines.push('');
277
277
  if (this.state.hasAnyKey) {
278
278
  lines.push(` ${s.success('✓')} You have API keys configured:`);
@@ -298,7 +298,7 @@ export class OnboardingWizardOverlayV2 extends BaseOverlayV2 {
298
298
  renderStepGitConfig(s) {
299
299
  const lines = [];
300
300
  const { gitConfig, inputMode } = this.state;
301
- lines.push(` ${s.secondary('Step 3: Git Configuration')}`);
301
+ lines.push(` ${s.secondary('Git Configuration')}`);
302
302
  lines.push('');
303
303
  // Input mode: entering git name
304
304
  if (inputMode === 'git-name') {
@@ -349,7 +349,7 @@ export class OnboardingWizardOverlayV2 extends BaseOverlayV2 {
349
349
  renderStepPaths(s) {
350
350
  const lines = [];
351
351
  const { inputMode, projectsPath } = this.state;
352
- lines.push(` ${s.secondary('Step 4: Projects Folder')}`);
352
+ lines.push(` ${s.secondary('Projects Folder')}`);
353
353
  lines.push('');
354
354
  // Input mode: editing path
355
355
  if (inputMode === 'projects-path') {
@@ -371,7 +371,7 @@ export class OnboardingWizardOverlayV2 extends BaseOverlayV2 {
371
371
  }
372
372
  renderStepCompilrMd(s) {
373
373
  const lines = [];
374
- lines.push(` ${s.secondary('Step 5: Project Memory (COMPILR.md)')}`);
374
+ lines.push(` ${s.secondary('Project Memory (COMPILR.md)')}`);
375
375
  lines.push('');
376
376
  lines.push(' Create a COMPILR.md file in your project root to give the');
377
377
  lines.push(' AI assistant context about your codebase.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilr-dev/cli",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "description": "AI-powered coding assistant CLI using @compilr-dev/agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",