ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ContextKeyExpr, ContextKeyExpression } from '../../../../../platform/contextkey/common/contextkey.js';
import { AGENTS_VOICE_CONNECTED, AGENTS_VOICE_ENABLED } from '../../../agentsVoice/common/agentsVoice.js';
import { ChatContextKeys } from '../../common/actions/chatContextKeys.js';
const VoiceModeButtonShown = ContextKeyExpr.notEquals('config.agents.voice.showButton', false);
/** Mirrors `ChatSpeechToTextConfigured` (built-in on-device dictation available). */
const DictationConfigured = ContextKeyExpr.and(ChatContextKeys.enabled, ContextKeyExpr.has(ChatContextKeys.speechToTextConfigured.key))!;
const DictationButtonShown = ContextKeyExpr.notEquals('config.dictation.showButton', false);
const VisibleVoiceMode = ContextKeyExpr.and(AGENTS_VOICE_ENABLED, VoiceModeButtonShown)!;
const VisibleDictation = ContextKeyExpr.and(DictationConfigured, DictationButtonShown)!;
/**
* When the segmented voice/dictation pill should render. The pill only earns its
* place when it would host at least two cells; otherwise the single standalone
* control for the lone available mode is clearer:
* - both dictation and Voice Mode are enabled (dictation + voice-connect cells), or
* - Voice Mode is connected, so the voice-connection + listen/mute cells render.
* In every other single-mode case the standalone controls (gated on the negation
* below) take over.
*/
// Structured as AND(VisibleVoiceMode, OR(...)) rather than a flat OR of ANDs so
// the shared VisibleVoiceMode term is only listed once.
export const SegmentedVoiceInputModePillActive: ContextKeyExpression = ContextKeyExpr.and(
VisibleVoiceMode,
ContextKeyExpr.or(
VisibleDictation,
AGENTS_VOICE_CONNECTED,
),
)!;
/** Standalone voice/dictation controls show when the pill does not apply. */
export const SegmentedVoiceInputModePillInactive: ContextKeyExpression = SegmentedVoiceInputModePillActive.negate();