vipcare 0.3.14 → 0.3.16
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/bin/vip.js +8 -8
- package/lib/synthesizer.js +1 -1
- package/package.json +1 -1
package/bin/vip.js
CHANGED
|
@@ -825,22 +825,22 @@ program.command('init')
|
|
|
825
825
|
const profilesDir = profilesAnswer.trim() || defaultDir;
|
|
826
826
|
|
|
827
827
|
console.log(`\n${c.cyan('AI backend preference:')}`);
|
|
828
|
-
console.log(' 1.
|
|
829
|
-
console.log(' 2.
|
|
830
|
-
console.log(' 3.
|
|
831
|
-
console.log(' 4.
|
|
832
|
-
const backendAnswer = await rl.question(' > ');
|
|
828
|
+
console.log(' 1. Claude CLI (recommended)');
|
|
829
|
+
console.log(' 2. Anthropic API');
|
|
830
|
+
console.log(' 3. GitHub Copilot CLI');
|
|
831
|
+
console.log(' 4. Auto-detect');
|
|
832
|
+
const backendAnswer = await rl.question(' (default: 1) > ');
|
|
833
833
|
const backendChoice = backendAnswer.trim() || '1';
|
|
834
834
|
|
|
835
|
-
const backendMap = { '1': '
|
|
836
|
-
const aiBackend = backendMap[backendChoice] || '
|
|
835
|
+
const backendMap = { '1': 'claude-cli', '2': 'anthropic', '3': 'copilot-cli', '4': 'auto' };
|
|
836
|
+
const aiBackend = backendMap[backendChoice] || 'claude-cli';
|
|
837
837
|
|
|
838
838
|
const config = {
|
|
839
839
|
profiles_dir: profilesDir.replace(/^~/, os.homedir()),
|
|
840
840
|
ai_backend: aiBackend,
|
|
841
841
|
};
|
|
842
842
|
|
|
843
|
-
if (aiBackend === 'anthropic') {
|
|
843
|
+
if (backendChoice === '2' || aiBackend === 'anthropic') {
|
|
844
844
|
const apiKey = await rl.question('\nAnthropic API key: ');
|
|
845
845
|
if (apiKey.trim()) {
|
|
846
846
|
config.anthropic_api_key = apiKey.trim();
|
package/lib/synthesizer.js
CHANGED
|
@@ -9,8 +9,8 @@ function getBackend() {
|
|
|
9
9
|
const config = loadConfig();
|
|
10
10
|
if (config.ai_backend) return config.ai_backend.toLowerCase();
|
|
11
11
|
|
|
12
|
-
if (process.env.ANTHROPIC_API_KEY || config.anthropic_api_key) return 'anthropic';
|
|
13
12
|
if (checkTool('claude')) return 'claude-cli';
|
|
13
|
+
if (process.env.ANTHROPIC_API_KEY || config.anthropic_api_key) return 'anthropic';
|
|
14
14
|
if (checkTool('gh') && copilotAvailable()) return 'copilot-cli';
|
|
15
15
|
|
|
16
16
|
throw new Error(
|