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.
*--------------------------------------------------------------------------------------------*/
/**
* Shared voice-mode glow helpers: the state model, the audio-intensity reducer,
* the synthetic breathing curve, and the theme-derived accent colors. The DOM
* applier that consumes these lives in `voiceGlowController.ts`; callers own
* their own animation loop, target and gating.
*
* This module is intentionally pure (no DOM / CSS imports) so it stays unit
* testable.
*/
import { Color, HSLA } from '../../../../../base/common/color.js';
import { inputBackground } from '../../../../../platform/theme/common/colors/inputColors.js';
import { IColorTheme } from '../../../../../platform/theme/common/themeService.js';
import { chatVoiceGlowBaseColor, chatVoiceListeningGlow, chatVoiceSpeakingGlow } from '../../common/widget/chatColors.js';
export type VoiceGlowState = 'idle' | 'listening' | 'processing'
voiceState VoiceGlowState
voiceState voiceState
connected active ownsVoice voiceState VoiceGlowState
connected active ownsVoice voiceState
analyser AnalyserNode dataArray value Uint8Array
analyser
dataArrayvalue dataArrayvaluelength analyserfrequencyBinCount
dataArrayvalue analyserfrequencyBinCount
analyserdataArrayvalue Uint8ArrayArrayBuffer
sum
i i dataArrayvaluelength i
sum dataArrayvaluei
Math sum dataArrayvaluelength
listening Color
speaking Color
background Color
Color
value
Math Math value
base Color degrees saturationMul lightnessAdd Color
hsla basehsla
hslah degrees hslas saturationMul hslal lightnessAdd
IVoiceGlowColors
listening
speaking
background Color
theme PickIColorTheme IVoiceGlowColors
base themechatVoiceGlowBaseColor
listening themechatVoiceListeningGlow base
speaking themechatVoiceSpeakingGlow base
background themeinputBackground background
voiceState VoiceGlowState colors IVoiceGlowColors Color
voiceState colorsspeaking colorslistening
dark cool warm
light cool warm
cool warm
accent Color mood VoiceRimMood theme GlowThemeKind background Color IVoiceRimAccent
h s accenthsla
tuned
h mood
Math Math s
thememood
contrasted background theme Colorwhite backgroundtuned
hue contrastedhslah
saturation Mathcontrastedhslas
lightness Mathcontrastedhslal
hue
saturation
lightness
voiceState VoiceGlowState intensity colors IVoiceGlowColors
r g b voiceState colorsrgba
shadowSpread intensity
shadowAlpha intensity