twinclaw 1.2.7 → 1.2.8
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/dist/config/env-validator.js +12 -2
- package/package.json +1 -1
|
@@ -109,8 +109,18 @@ function detectActiveFeatures() {
|
|
|
109
109
|
* Individual model conditions only generate issues when no model key is available at all.
|
|
110
110
|
*/
|
|
111
111
|
function hasAnyModelKey() {
|
|
112
|
-
const modelKeys = ['MODAL_API_KEY', 'OPENROUTER_API_KEY', 'GEMINI_API_KEY', 'GITHUB_TOKEN'];
|
|
113
|
-
|
|
112
|
+
const modelKeys = ['MODAL_API_KEY', 'OPENROUTER_API_KEY', 'GEMINI_API_KEY', 'GITHUB_TOKEN', 'GROQ_API_KEY'];
|
|
113
|
+
// Check secret vault first
|
|
114
|
+
const vaultKeys = modelKeys.some((key) => getSecretVaultService().readSecret(key) !== null);
|
|
115
|
+
if (vaultKeys)
|
|
116
|
+
return true;
|
|
117
|
+
// Also check config file via getConfigValue (sync)
|
|
118
|
+
const modalKey = getConfigValue('MODAL_API_KEY');
|
|
119
|
+
const openRouterKey = getConfigValue('OPENROUTER_API_KEY');
|
|
120
|
+
const geminiKey = getConfigValue('GEMINI_API_KEY');
|
|
121
|
+
const githubKey = getConfigValue('GITHUB_TOKEN');
|
|
122
|
+
const groqKey = getConfigValue('GROQ_API_KEY');
|
|
123
|
+
return !!(modalKey || openRouterKey || geminiKey || githubKey || groqKey);
|
|
114
124
|
}
|
|
115
125
|
// ── Public API ───────────────────────────────────────────────────────────────
|
|
116
126
|
/**
|