@iservu-inc/adf-cli 0.5.4 → 0.5.5

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/CHANGELOG.md CHANGED
@@ -5,6 +5,50 @@ All notable changes to `@iservu-inc/adf-cli` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.5] - 2025-10-05
9
+
10
+ ### ✅ Fixed AI Provider Configuration Display
11
+
12
+ **FIX:** Restored checkmarks (✓) for configured AI providers alongside the active (★) indicator.
13
+
14
+ #### What Was Broken
15
+
16
+ In the AI provider selection menu, only the "★ Active" indicator was showing. The checkmarks that indicate which providers have configured API keys were missing.
17
+
18
+ **Before (broken):**
19
+ ```
20
+ ? Select AI provider:
21
+ Anthropic Claude
22
+ OpenAI GPT
23
+ Google Gemini
24
+ OpenRouter (Multi-Model) ★ Active
25
+ ```
26
+
27
+ **After (fixed):**
28
+ ```
29
+ ? Select AI provider:
30
+ Anthropic Claude ✓
31
+ OpenAI GPT ✓
32
+ Google Gemini ✓
33
+ OpenRouter (Multi-Model) ✓ ★ Active
34
+ ```
35
+
36
+ #### What We Fixed
37
+
38
+ - Refactored provider name building logic for clarity
39
+ - Added proper spacing between provider name, checkmark, and active indicator
40
+ - Both indicators now show correctly:
41
+ - **✓** = API key configured
42
+ - **★ Active** = Currently selected provider
43
+
44
+ #### Technical Changes
45
+
46
+ - Modified: `lib/ai/ai-config.js` - Cleaner `buildProviderName()` function
47
+ - Better string concatenation with consistent spacing
48
+ - Removed debug logging
49
+
50
+ ---
51
+
8
52
  ## [0.5.4] - 2025-10-05
9
53
 
10
54
  ### ✨ Enhanced Version & Help Display
@@ -298,25 +298,40 @@ async function configureAIProvider(projectPath = process.cwd()) {
298
298
  }
299
299
  }
300
300
 
301
- // Provider selection
301
+ // Provider selection with status indicators
302
+ const buildProviderName = (provider, providerId) => {
303
+ const isConfigured = availableProviders.find(p => p.id === providerId);
304
+ const isActive = currentProvider === providerId;
305
+
306
+ let name = provider.name;
307
+ if (isConfigured) {
308
+ name += chalk.green(' ✓');
309
+ }
310
+ if (isActive) {
311
+ name += chalk.cyan(' ★ Active');
312
+ }
313
+
314
+ return name;
315
+ };
316
+
302
317
  const providerChoices = [
303
318
  {
304
- name: `${AI_PROVIDERS.ANTHROPIC.name} ${availableProviders.find(p => p.id === 'anthropic') ? chalk.green('✓ Configured') : ''} ${currentProvider === 'anthropic' ? chalk.cyan('★ Active') : ''}`,
319
+ name: buildProviderName(AI_PROVIDERS.ANTHROPIC, 'anthropic'),
305
320
  value: 'anthropic',
306
321
  short: 'Anthropic'
307
322
  },
308
323
  {
309
- name: `${AI_PROVIDERS.OPENAI.name} ${availableProviders.find(p => p.id === 'openai') ? chalk.green('✓ Configured') : ''} ${currentProvider === 'openai' ? chalk.cyan('★ Active') : ''}`,
324
+ name: buildProviderName(AI_PROVIDERS.OPENAI, 'openai'),
310
325
  value: 'openai',
311
326
  short: 'OpenAI'
312
327
  },
313
328
  {
314
- name: `${AI_PROVIDERS.GOOGLE.name} ${availableProviders.find(p => p.id === 'google') ? chalk.green('✓ Configured') : ''} ${currentProvider === 'google' ? chalk.cyan('★ Active') : ''}`,
329
+ name: buildProviderName(AI_PROVIDERS.GOOGLE, 'google'),
315
330
  value: 'google',
316
331
  short: 'Google'
317
332
  },
318
333
  {
319
- name: `${AI_PROVIDERS.OPENROUTER.name} ${availableProviders.find(p => p.id === 'openrouter') ? chalk.green('✓ Configured') : ''} ${currentProvider === 'openrouter' ? chalk.cyan('★ Active') : ''}`,
334
+ name: buildProviderName(AI_PROVIDERS.OPENROUTER, 'openrouter'),
320
335
  value: 'openrouter',
321
336
  short: 'OpenRouter'
322
337
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iservu-inc/adf-cli",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "CLI tool for AgentDevFramework - AI-assisted development framework with multi-provider AI support",
5
5
  "main": "index.js",
6
6
  "bin": {