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 { Disposable, DisposableStore, IDisposable, toDisposable } from '../../../base/common/lifecycle.js';
import { createDecorator } from '../../instantiation/common/instantiation.js';
import { IByokLmBridgeConnection, IByokLmModelInfo } from '../common/agentHostByokLm.js';
export const IByokLmBridgeRegistry = createDecorator<IByokLmBridgeRegistry>('byokLmBridgeRegistry');
/**
* Node-side registry of renderer {@link IByokLmBridgeConnection}s keyed by
* client id. Populated by the agent host's connection lifecycle (one entry per
* connected renderer) and consumed by {@link IByokLmProxyService} (inference
* routing) and { CopilotAgent (model catalogue).
*
* **Single serving window, multiple connections.** BYOK is serviced by the
* renderer LM API, whose BYOK models are a property of the user's installed
* extensions, not of a particular window — so every window that registers the
* handler exposes the same set. Both the main workbench and the dedicated Agents
* app register it (each runs a full extension host whose LM API holds the same
* BYOK models), so either can serve. A connection that connects without binding
* the handler never pushes a snapshot and is treated as non-serving. The registry
* therefore does NOT aggregate per-window model sets; it surfaces the models from
* any one *serving* window (preferring one that actually has models) and routes
* inference there, automatically excluding non-serving windows.
*
* **Push, not pull.** Each connection pushes its current model snapshot over
* IByokLmBridgeConnection.onDidChangeModels (on subscribe and on every
* change); the registry subscribes on register, caches each snapshot, and
* fires onDidChangeModels when the serving model set changes. A connection
* becomes "serving" once it pushes its first snapshot (even an empty one).
*/
_serviceBrand
clientId connection IByokLmBridgeConnection IDisposable
IByokLmModelInfo
IByokLmBridgeConnection
IDisposable
connection IByokLmBridgeConnection
models IByokLmModelInfo
store DisposableStore
_serviceBrand
_entries
_changeListeners
IDisposable
_changeListenerslistener
_changeListenerslistener
listener _changeListeners
clientId connection IByokLmBridgeConnection IDisposable
_entriesclientIdstore
store
entry IConnectionEntry connection models store
_entriesclientId entry
storeconnectionmodels
_entriesclientId entry
entrymodels entrymodels models
entrymodels models
_entriesclientId entry
_entriesclientId
entrystore
IByokLmModelInfo
models
IByokLmBridgeConnection
connection
IConnectionEntry
emptyFallback IConnectionEntry
entry _entries
entrymodels
entrymodelslength
entry
emptyFallback entry
emptyFallback
a IByokLmModelInfo b IByokLmModelInfo
alength blength
am i
n bi
mvendor nvendor
mid nid
mname nname
mmodelIdentifier nmodelIdentifier
mmaxContextWindowTokens nmaxContextWindowTokens
msupportsVision nsupportsVision
mdefaultReasoningEffort ndefaultReasoningEffort
msupportedReasoningEfforts nsupportedReasoningEfforts
a b
a b a b alength blength avalue index value bindex
_serviceBrand
IDisposable
DisposableNone
IByokLmModelInfo
IByokLmBridgeConnection
IDisposable
DisposableNone