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 } from '../../../../../base/common/lifecycle.js';
import { autorun, IObservable, ISettableObservable, observableValueOpts } from '../../../../../base/common/observable.js';
import type { ToolDefinition } from '../../../common/state/protocol/state.js';
import { ActiveClientToolSet, structuralToolsEqual } from '../../activeClientState.js';
/**
* Pure state holder for the workbench-registered client-tool snapshots
* contributed by potentially several active clients, keyed by `clientId`.
* Exposes the merged tool set as a single {@link IObservable} (deduplicated
* by name, first-inserted client wins) so consumers can react to changes
* without polling, and {@link ownerOf} so tool calls can be routed back to
* the contributing client.
*
* The `merged` observable dedupes structurally-equivalent writes: tool
* snapshots compare on `name + description + inputSchema` (order-insensitive,
* `undefined` equivalent to `[]`). A re-send of a structurally identical set
* therefore does NOT fire downstream subscribers.
*
* Knows nothing about diffing or the SDK — pair with
* SessionClientToolsDiff to track "has the merged snapshot changed
* since the last successful SDK build".
*/
_toolSet
_merged ISettableObservable ToolDefinition
owner a b a b
merged IObservable ToolDefinition _merged
clientId tools ToolDefinition
_toolSetclientId tools
_merged_toolSet
clientId ToolDefinition
_toolSetclientId
clientId
_toolSetclientId
_merged_toolSet
toolName preferredClientId
_toolSettoolName preferredClientId
model SessionClientToolsModel
_dirty
_ignoreNextFire
_lastAppliedTools ToolDefinition
reader
merged modelmergedreader
_ignoreNextFire
_ignoreNextFire
_lastAppliedTools merged
merged _lastAppliedTools
_dirty
_dirty
ToolDefinition
merged modelmerged
_dirty
_lastAppliedTools merged
merged
_dirty