Create standalone browser port of LTX Athena with authenticated native API transport

This commit is contained in:
Mikei386
2026-09-29 17:59:23 +02:00
commit 1333b0c36b
202 changed files with 63054 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
export const GEMINI_KEY_REQUIRED_SETTINGS_DETAIL = {
tab: 'apiKeys' as const,
reason: 'geminiKeyRequired' as const,
}
export function isEnhanceBlockedByMissingGeminiKey(input: {
enhanceAvailableForMode: boolean
enhanceProvider: 'local' | 'api'
hasGeminiApiKey: boolean
hasEnhanceInput: boolean
isGenerationInProgressForEnhance: boolean
isOtherGenerationRunning: boolean
}): boolean {
// True when Enhance would run via Gemini but no key is configured — including when local
// Enhance is available and the user explicitly picked API. Clicking then opens Settings
// instead of hiding the API option.
return (
input.enhanceAvailableForMode
&& input.enhanceProvider === 'api'
&& !input.hasGeminiApiKey
&& input.hasEnhanceInput
&& !input.isGenerationInProgressForEnhance
&& !input.isOtherGenerationRunning
)
}