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.
*--------------------------------------------------------------------------------------------*/
/** Registered name of the PCM capture audio worklet processor. */
const PCM_CAPTURE_PROCESSOR = 'vscode-pcm-capture';
/**
* Control message the main thread posts to the worklet to ask it to emit any
* partially-filled buffer immediately (rather than waiting for it to reach the
* chunk size) and acknowledge. Used to flush the trailing audio before capture
* is torn down so the final spoken words are not dropped.
*/
export const PCM_FLUSH_REQUEST = 'vscode-pcm-flush';
/** Control message the worklet posts back after emitting its buffered tail. */
export const PCM_FLUSH_ACK = 'vscode-pcm-flushed';
/**
* How long the main thread waits for the worklet's flush acknowledgment before
* giving up. The audio thread can be suspended or gone (e.g. the context is
* closing), in which case no ack ever arrives; resolving after this cap keeps
* `stop()` from hanging.
*/
const FLUSH_TIMEOUT_MS = 250;
/**
* Builds the source of the PCM capture worklet for a given chunk size. The
* processor runs on the dedicated audio rendering thread (unlike the deprecated
* `ScriptProcessorNode`, whose `onaudioprocess` callback runs on the main thread
* and gets throttled or stops entirely), buffers mono samples into fixed-size
* chunks and transfers them to the main thread for encoding/streaming.
*
* On a `PCM_FLUSH_REQUEST` control message it emits whatever partial buffer has
* accumulated so far and posts a `PCM_FLUSH_ACK` acknowledgment, so the caller
* can drain the trailing audio before tearing the node down.
*/
chunkSize
PickMessagePort
PickWindow globalThis
port IPcmCapturePort timers IPcmCaptureTimers samples Float32Array
onFlushed
port e
data edata
data data type type
onFlushed
data Float32Array
flush resolve
settled
settled
settled
onFlushed
timerstimer
onFlushed done
timer timersdone
port type
flush
node AudioWorkletNode
window Window globalThis context AudioContext chunkSize samples Float32Array IPcmCaptureNode
moduleUrl chunkSize type
contextaudioWorkletmoduleUrl
moduleUrl
node context numberOfInputs numberOfOutputs channelCount
flush nodeport window onChunk
node flush