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 type * as vscode from 'vscode';
import { AsyncIterableProducer, AsyncIterableSource, RunOnceScheduler } from '../../../base/common/async.js';
import { VSBuffer } from '../../../base/common/buffer.js';
import { CancellationToken, CancellationTokenSource } from '../../../base/common/cancellation.js';
import { SerializedError, transformErrorForSerialization, transformErrorFromSerialization } from '../../../base/common/errors.js';
import { Emitter, Event } from '../../../base/common/event.js';
import { Iterable
DisposableMap IDisposable toDisposable
IJSONSchema
UriComponents
localize
ExtensionIdentifier ExtensionIdentifierMap ExtensionIdentifierSet IExtensionDescription
createDecorator
ILogService
Progress
IChatMessage IChatResponsePart ILanguageModelChatInfoOptions ILanguageModelChatMetadata ILanguageModelChatMetadataAndIdentifier ILanguageModelChatRequestOptions
checkProposedApiEnabled isProposedApiEnabled
SerializableObjectWithBuffers
ExtHostLanguageModelsShape MainContext MainThreadLanguageModelsShape
IExtHostAuthentication
IExtHostRpcService
typeConvert
extHostTypes
ChatAgentLocation
IExtHostLanguageModels
extension IExtensionDescription
provider vscodeLanguageModelChatProvider
vscodeLanguageModelTextPart vscodeLanguageModelToolCallPart vscodeLanguageModelDataPart vscodeLanguageModelThinkingPart
apiObject vscodeLanguageModelChatResponse
_defaultStream
_isDone
that
stream1 stream2 AsyncIterableProducerthat_defaultStreamasyncIterable
apiObject
stream1
stream2part
part LanguageModelTextPart
partvalue
parts IChatResponsePart IChatResponsePart
_isDone
lmResponseParts LMResponsePart
part Iterableparts
out LMResponsePart
parttype
out partvalue partaudience
parttype
out partvalue partid partmetadata
parttype
out partdatabuffer partmimeType partaudience
out parttoolCallId partname partparameters
lmResponsePartsout
_defaultStreamlmResponseParts
err Error
_isDone
_defaultStreamerr
_isDone
_defaultStream
_serviceBrand
_idPool
_proxy MainThreadLanguageModelsShape
_onDidChangeModelAccess
_onDidChangeProviders
onDidChangeProviders _onDidChangeProvidersevent
_onDidChangeModelProxyAvailability
onDidChangeModelProxyAvailability _onDidChangeModelProxyAvailabilityevent
_languageModelProviders
_localModels
_modelAccessList
_pendingRequest
_pendingCancelCTS
_ignoredFileProviders
_languageModelProxyProvider vscodeLanguageModelProxyProvider
extHostRpc IExtHostRpcService
_logService ILogService
_extHostAuthentication IExtHostAuthentication
_proxy extHostRpcMainContextMainThreadLanguageModels
_onDidChangeModelAccess
_onDidChangeProviders
_onDidChangeModelProxyAvailability
_pendingRequest
_pendingCancelCTS
extension IExtensionDescription vendor provider vscodeLanguageModelChatProvider IDisposable
_languageModelProvidersvendor extension extension provider
_proxyvendor
providerChangeEventDisposable IDisposable
provideronDidChangeLanguageModelChatInformation
providerChangeEventDisposable provider
_proxyvendor
_languageModelProvidersvendor
_localModelsvalue key
valuemetadatavendor vendor
_localModelskey
providerChangeEventDisposable
_proxyvendor
vendor group modelId
group
modelIdentifier
firstSlash modelIdentifier
firstSlash modelIdentifier firstSlash
vendor options ILanguageModelChatInfoOptions token CancellationToken ILanguageModelChatMetadataAndIdentifier
data _languageModelProvidersvendor
data
modelInformation vscodeLanguageModelChatInformation dataprovider silent optionssilent configuration optionsconfiguration token
modelMetadataAndIdentifier ILanguageModelChatMetadataAndIdentifier modelInformationm ILanguageModelChatMetadataAndIdentifier
auth
mrequiresAuthorization dataextension
auth
providerLabel dataextensiondisplayName dataextensionname
accountLabel mrequiresAuthorization mrequiresAuthorizationlabel
mcapabilitieseditTools
dataextension
isDefaultForLocation ChatAgentLocation
dataextension
misDefault
key ObjectChatAgentLocation
key
isDefaultForLocationkey ChatAgentLocation
misDefault
key ObjectmisDefault
enumKey key extHostTypesChatLocation
isDefaultForLocationtypeConvertChatLocationenumKey misDefaultenumKey
metadata
extension dataextensionidentifier
id mid
vendor
name mname
family mfamily
detail mdetail
tooltip mtooltip
version mversion
multiplierNumeric mmultiplierNumeric
isBYOK misBYOK
pricing mpricing
inputCost minputCost
outputCost moutputCost
cacheCost mcacheCost
cacheWriteCost mcacheWriteCost
longContextInputCost mlongContextInputCost
longContextOutputCost mlongContextOutputCost
longContextCacheCost mlongContextCacheCost
longContextCacheWriteCost mlongContextCacheWriteCost
priceCategory mpriceCategory
category mcategory
maxInputTokens mmaxInputTokens
maxOutputTokens mmaxOutputTokens
auth
isDefaultForLocation
isUserSelectable misUserSelectable
statusIcon mstatusIcon
targetChatSessionType mtargetChatSessionType
configurationSchema mconfigurationSchema IJSONSchema
warningText mwarningText
infoText minfoText
promo mpromo
capabilities mcapabilities
vision mcapabilitiesimageInput
editTools mcapabilitieseditTools
toolCalling mcapabilitiestoolCalling
agentMode mcapabilitiestoolCalling
identifier vendor optionsgroup mid
_localModelsvalue key
valuemetadatavendor vendor valuegroup optionsgroup
_localModelskey
i i modelMetadataAndIdentifierlength i
_localModelsmodelMetadataAndIdentifieriidentifier
group optionsgroup
metadata modelMetadataAndIdentifierimetadata
info modelInformationi
modelMetadataAndIdentifier
modelId requestId from ExtensionIdentifier messages SerializableObjectWithBuffersIChatMessage options ILanguageModelChatRequestOptions token CancellationToken
knownModel _localModelsmodelId
knownModel
data _languageModelProvidersknownModelmetadatavendor
data
cts token
_pendingCancelCTSrequestId cts
providerToken ctstoken
queue IChatResponsePart
queuelength
_proxyrequestId queue
queuelength
queueScheduler sendNow
part IChatResponsePart
newLen queuepart
newLen
queueScheduler
queueScheduler
progress fragment
providerTokenisCancellationRequested
_logService
part IChatResponsePart
fragment LanguageModelToolCallPart
part type name fragmentname parameters fragmentinput toolCallId fragmentcallId
fragment LanguageModelTextPart
part type value fragmentvalue audience fragmentaudience
fragment LanguageModelDataPart
part type mimeType fragmentmimeType data VSBufferfragmentdata audience fragmentaudience
fragment LanguageModelThinkingPart
part type value fragmentvalue id fragmentid metadata fragmentmetadata
part
_logService
part
value
value dataprovider
knownModelinfo
messagesvaluetypeConvertLanguageModelChatMessage2to
options modelOptions optionsmodelOptions modelConfiguration optionsconfiguration requestInitiator from ExtensionIdentifierfrom toolMode optionstoolMode extHostTypesLanguageModelChatToolModeAuto includeEncryptedThinking optionsincludeEncryptedThinking
progress
providerToken
err
_pendingCancelCTSrequestId
err
value
_pendingCancelCTSrequestId
_proxyrequestId
err
_pendingCancelCTSrequestId
_proxyrequestId err
requestId
_pendingCancelCTSrequestId
modelId value token CancellationToken
knownModel _localModelsmodelId
knownModel
data _languageModelProvidersknownModelmetadatavendor
data
dataproviderknownModelinfo value token
extension IExtensionDescription forceResolveModels vscodeLanguageModelChat
defaultModelId
forceResolveModels
extension
modelIdentifier modelData _localModels
modelDatametadataisDefaultForLocationChatAgentLocationChat modelDatametadatavendor
defaultModelId modelIdentifier
defaultModelId forceResolveModels
extension
extension defaultModelId
extension IExtensionDescription modelId vscodeLanguageModelChat
modelId
_localModelsmodelId
vendor modelId
vendor
_logService
_logService
_proxy vendor extension extensionidentifier
_localModelsmodelId
_logService
extension modelId
extension IExtensionDescription modelId vscodeLanguageModelChat
model _localModelsmodelId
model
extensionidentifier modelmetadata
modelmetadata
that
apiObject vscodeLanguageModelChat
id modelinfoid
vendor modelmetadatavendor
family modelinfofamily
version modelinfoversion
name modelinfoname
pricing modelmetadatapricing
inputCost modelmetadatainputCost
outputCost modelmetadataoutputCost
cacheCost modelmetadatacacheCost
cacheWriteCost modelmetadatacacheWriteCost
longContextInputCost modelmetadatalongContextInputCost
longContextOutputCost modelmetadatalongContextOutputCost
longContextCacheCost modelmetadatalongContextCacheCost
longContextCacheWriteCost modelmetadatalongContextCacheWriteCost
priceCategory modelmetadatapriceCategory
category modelmetadatacategory
capabilities
supportsImageToText modelmetadatacapabilitiesvision
supportsToolCalling modelmetadatacapabilitiestoolCalling
editToolsHint modelmetadatacapabilitieseditTools
maxInputTokens modelmetadatamaxInputTokens
text token
that_localModelsmodelId
extHostTypesLanguageModelErrormodelId
thatmodelId text token CancellationTokenNone
messages options token
that_localModelsmodelId
extHostTypesLanguageModelErrormodelId
thatextension modelId messages options token CancellationTokenNone
ObjectapiObject
apiObject
extension IExtensionDescription selector vscodeLanguageModelChatSelector
models _proxy selector extension extensionidentifier
modelResults modelsidentifier extension identifier
modelResultsm m vscodeLanguageModelChat m
extension IExtensionDescription languageModelId messages vscodeLanguageModelChatMessage2 options vscodeLanguageModelChatRequestOptions token CancellationToken
internalMessages IChatMessage extension messages
from extensionidentifier
metadata _localModelslanguageModelIdmetadata
metadata _localModelslanguageModelId
extHostTypesLanguageModelError
from metadata
success extension identifier metadataextension displayName metadataauthproviderLabel optionsjustification
success _modelAccessListfrommetadataextension
extHostTypesLanguageModelError
requestId Math
res
_pendingRequestrequestId languageModelId res
cts token
_pendingCancelCTSrequestId cts
ctstoken
_proxyrequestId
_proxyfrom languageModelId requestId internalMessages options ctstoken
error
_pendingRequestrequestId
_pendingCancelCTSrequestId
extHostTypesLanguageModelErrorerror error
resapiObject
extension IExtensionDescription messages vscodeLanguageModelChatMessage2
internalMessages IChatMessage
message messages
messagerole extHostTypesLanguageModelChatMessageRoleSystem
extension
internalMessagestypeConvertLanguageModelChatMessage2message
internalMessages
requestId chunk SerializableObjectWithBuffersIChatResponsePart IChatResponsePart
data _pendingRequestrequestId
data
datareschunkvalue
_onDidChangeProviders
requestId error SerializedError
data _pendingRequestrequestId
data
_pendingRequestrequestId
_pendingCancelCTSrequestId
error
dataresextHostTypesLanguageModelErrorerror error
datares
from IExtensionDescription to identifier ExtensionIdentifier displayName justification silent
providerId toidentifiervalue
session _extHostAuthenticationfrom providerId silent
session
from fromidentifier to toidentifier enabled
silent
detail justification
todisplayName justification
_extHostAuthenticationfrom providerId forceNewSession detail
from fromidentifier to toidentifier enabled
err
from ExtensionIdentifier toMetadata ILanguageModelChatMetadata toMetadata ILanguageModelChatMetadata auth NonNullableILanguageModelChatMetadata
toMetadataauth
ExtensionIdentifiertoMetadataextension from
metadata ILanguageModelChatMetadata
metadataauth
from _languageAccessInformationExtensions
from identifier metadataextension displayName
err
_logService
_logServiceerr
modelId value vscodeLanguageModelChatMessage2 token vscodeCancellationToken
data _localModelsmodelId
data
extHostTypesLanguageModelError
_languageModelProvidersdatametadatavendorproviderdatainfo value token
data from ExtensionIdentifier to ExtensionIdentifier enabled
updated
from to enabled data
set _modelAccessListfrom
oldValue setto
oldValue enabled
enabled
setto
setto
_modelAccessListfrom set
newItem from to
updatednewItem
_onDidChangeModelAccessnewItem
_languageAccessInformationExtensions
from ReadonlyIExtensionDescription vscodeLanguageModelAccessInformation
_languageAccessInformationExtensionsfrom
_onDidChangeAccess EventEvent_onDidChangeModelAccessevent e ExtensionIdentifierefrom fromidentifier
_onDidAddRemove Event_onDidChangeProvidersevent
Event_onDidChangeAccess _onDidAddRemove
chat vscodeLanguageModelChat
extension IExtensionDescription uri vscodeUri token vscodeCancellationToken CancellationTokenNone
extension
_proxyuri token
_languageModelProxyProvider
extension IExtensionDescription vscodeLanguageModelProxy
extension
_languageModelProxyProvider
_logService
requestingExtensionId ExtensionIdentifierextensionidentifier
result _languageModelProxyProviderrequestingExtensionId CancellationTokenNone
result
_logService
result
err
_logService err
err
handle uri UriComponents token CancellationToken
provider _ignoredFileProvidershandle
provider
provideruri token
extension IExtensionDescription provider vscodeLanguageModelIgnoredFileProvider vscodeDisposable
extension
handle ExtHostLanguageModels_idPool
_proxyhandle
_ignoredFileProvidershandle provider
_proxyhandle
_ignoredFileProvidershandle
extension IExtensionDescription provider vscodeLanguageModelProxyProvider vscodeDisposable
extension
_languageModelProxyProvider provider
_onDidChangeModelProxyAvailability
_languageModelProxyProvider provider
_languageModelProxyProvider
_onDidChangeModelProxyAvailability