vibecodingmachine-cli 2025.12.22-2230 → 2025.12.24-2348

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.
@@ -1,4 +1,5 @@
1
1
  const { getAutoConfig, setAutoConfig } = require('./config');
2
+ const { t } = require('vibecodingmachine-core');
2
3
 
3
4
  const PROVIDER_DEFINITIONS = [
4
5
  {
@@ -89,6 +90,40 @@ function getProviderDefinition(id) {
89
90
  return PROVIDER_DEFINITIONS.find(def => def.id === id);
90
91
  }
91
92
 
93
+ /**
94
+ * Get the translated display name for a provider
95
+ * @param {string} id - Provider ID
96
+ * @returns {string} - Translated provider name
97
+ */
98
+ function getProviderDisplayName(id) {
99
+ const translationKeyMap = {
100
+ 'groq': 'provider.groq.name',
101
+ 'anthropic': 'provider.anthropic.name',
102
+ 'bedrock': 'provider.bedrock.name',
103
+ 'openai': 'provider.openai.name',
104
+ 'deepseek': 'provider.deepseek.name',
105
+ 'google': 'provider.google.name',
106
+ 'openrouter': 'provider.openrouter.name',
107
+ 'ollama': 'provider.ollama.name',
108
+ 'lmstudio': 'provider.lmstudio.name',
109
+ 'cursor': 'ide.agent.cursor',
110
+ 'windsurf': 'ide.agent.windsurf',
111
+ 'vscode': 'ide.agent.vscode',
112
+ 'cline': 'ide.agent.cline',
113
+ 'claude-code': 'ide.agent.claude.code',
114
+ 'antigravity': 'ide.agent.antigravity'
115
+ };
116
+
117
+ const key = translationKeyMap[id];
118
+ if (key) {
119
+ return t(key);
120
+ }
121
+
122
+ // Fallback to the hardcoded name from provider definition
123
+ const def = getProviderDefinition(id);
124
+ return def ? def.name : id;
125
+ }
126
+
92
127
  function getDefaultProviderOrder() {
93
128
  return PROVIDER_DEFINITIONS.map(def => def.id);
94
129
  }
@@ -129,9 +164,11 @@ async function saveProviderPreferences(order, enabled) {
129
164
  module.exports = {
130
165
  getProviderDefinitions,
131
166
  getProviderDefinition,
167
+ getProviderDisplayName,
132
168
  getDefaultProviderOrder,
133
169
  mergeProviderPreferences,
134
170
  getProviderPreferences,
135
- saveProviderPreferences
171
+ saveProviderPreferences,
172
+ PROVIDER_DEFINITIONS
136
173
  };
137
174