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 { RequestType } from '@vscode/copilot-api';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { ChatRequest } from 'vscode';
import { Emitter } from '../../../../util/vs/base/common/event';
import { IInstantiationService } from '../../../../util/vs/platform/instantiation/common/instantiation';
import { ChatLocation } from '../../../../vscodeTypes';
import { IAuthenticationService } from
BaseConfig ConfigKey IConfigurationService
DefaultsOnlyConfigurationService
InMemoryConfigurationService
createPngBytes
ILogService
IChatEndpoint
NullRequestLogger
IExperimentationService NullExperimentationService
ITelemetryService
defaultAutoModeTier
ICAPIClientService
AutomodeService
entries Record name
lower Record
k v Objectentries
lowerk v
name lowername
automodeService AutomodeService
mockCAPIClientService ICAPIClientService
mockAuthService IAuthenticationService
mockLogService ILogService
mockInstantiationService IInstantiationService
mockExpService IExperimentationService
mockChatEndpoint IChatEndpoint
configurationService IConfigurationService
onDidAuthenticationChangeEmitter Emitter
mockTelemetryService ITelemetryService sendEnhancedGHTelemetryEvent ReturnType vifn sendMSFTTelemetryEvent ReturnType vifn
model provider overrides PartialIChatEndpoint IChatEndpoint
model
modelProvider provider
displayName model
maxOutputTokens
supportsToolCalls
supportsVision
supportsPrediction
showInModelPicker
isDefault
isFallback
policy
overrides
IChatEndpoint
AutomodeService
mockCAPIClientService
mockAuthService
mockLogService
mockInstantiationService
mockExpService
mockTelemetryService
configurationService
overrides MapBaseConfig
configurationService overrides
ConfigKeyAdvancedAutoModeTiersEnabled
override
ConfigKeyAdvancedAutoModeTierOverride override
body status
serialized body
ok status status
status
statusText status
headers
text viserialized
json vi serialized
body status
mockCAPIClientServicemakeRequest ReturnType vifn
body status
selectedModel overrides Record
session_token
expires_at MathDate
selected_model id selectedModel
overrides
mockCAPIClientServicemakeRequest ReturnType vifnmockcallsc ctype RequestTypeAuto
c cbody
mockChatEndpoint
mockCAPIClientService
makeRequest vi
ICAPIClientService
onDidAuthenticationChangeEmitter
mockAuthService
getCopilotToken vi token
onDidAuthenticationChange onDidAuthenticationChangeEmitterevent
IAuthenticationService
mockLogService
trace vi
debug vi
info vi
warn vi
error vi
ILogService
mockInstantiationService
createInstance vi
_ctor endpointOrModelInfo
endpointOrModelInfo endpointOrModelInfo endpointOrModelInfo
endpointOrModelInfoid endpointOrModelInfovendor
name endpointOrModelInfoname
supportsVision endpointOrModelInfocapabilitiessupportsvision
endpointOrModelInfo
IInstantiationService
mockExpService
mockTelemetryService
sendTelemetryEvent vi
sendMSFTTelemetryEvent vi
sendTelemetryErrorEvent vi
sendMSFTTelemetryErrorEvent vi
sendSharedTelemetryEvent vi
sendEnhancedGHTelemetryEvent vi
ITelemetryService sendEnhancedGHTelemetryEvent ReturnType vifn sendMSFTTelemetryEvent ReturnType vifn
vi
gpt4oEndpoint
automodeService
result automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
model resultmodel calls length model calls
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest rejects
automodeService
automodeService mockChatEndpointrejects
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpointrejects
gpt4oEndpoint
automodeService
result automodeService
location ChatLocationPanel
prompt
command
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
model resultmodel bodies model bodies prompt
gpt4oEndpoint
automodeService
request location ChatLocationPanel prompt ChatRequest
first automodeServicerequest mockChatEndpoint gpt4oEndpoint
automodeServicerequest mockChatEndpoint gpt4oEndpoint
model firstmodel calls length model calls
visionEndpoint supportsVision
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
references value mimeType data
ChatRequest visionEndpoint
prompt has_image
gpt4oEndpoint
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
automodeServicechatRequest ChatRequest gpt4oEndpoint
second automodeService chatRequest prompt ChatRequest gpt4oEndpoint
model secondmodel calls length model calls
gpt4oEndpoint
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
automodeServicechatRequest ChatRequest gpt4oEndpoint
automodeServicechatRequest ChatRequest
automodeService chatRequest prompt ChatRequest gpt4oEndpoint
automodeService
automodeService prompt sessionId ChatRequestnot
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
results
models resultsr rmodel calls length
models calls
gpt4oEndpoint
automodeService
prompt automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
results
models resultsr rmodel calls length
models calls
gpt4oEndpoint
releaseAuto
autoInFlight resolve releaseAuto resolve
mockCAPIClientServicemakeRequest ReturnType vifn
autoInFlight
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
pending automodeServicechatRequest ChatRequest mockChatEndpoint gpt4oEndpoint
onDidAuthenticationChangeEmitter
releaseAuto
pendingrejects
next automodeService chatRequest prompt ChatRequest mockChatEndpoint gpt4oEndpoint
model nextmodel calls length model calls
gpt4oEndpoint supportsVision
automodeService
sessionId tier references automodeService
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
references
ChatRequest mockChatEndpoint gpt4oEndpoint
value mimeType
error
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint
rejects
retry
model retrymodel calls length model calls
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
automodeServicechatRequest ChatRequest mockChatEndpoint
onDidAuthenticationChangeEmitter
automodeService chatRequest prompt ChatRequest mockChatEndpoint
session_token
expires_at MathDate
selected_model
id
name
version
vendor
capabilities
family
tokenizer
limits max_prompt_tokens max_output_tokens
supports vision tool_calls streaming
automodeService
result automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint
resultmodel
mockTelemetryServicesendMSFTTelemetryEvent
reason
error
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpointrejects
mockTelemetryServicesendMSFTTelemetryEvent
reason
error
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
automodeServicechatRequest ChatRequest mockChatEndpointrejects
automodeService chatRequest prompt ChatRequest mockChatEndpointrejects
gpt4oEndpoint
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
automodeServicechatRequest ChatRequest mockChatEndpoint gpt4oEndpoint
error
automodeServicechatRequest ChatRequest
second automodeService chatRequest prompt ChatRequest mockChatEndpoint gpt4oEndpoint
secondmodel
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpointrejects
mockTelemetryServicesendMSFTTelemetryEvent
reason
textOnly supportsVision
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
references value mimeType data
ChatRequest textOnly mockChatEndpointrejects
mockTelemetryServicesendMSFTTelemetryEvent
reason
textOnly supportsVision
visionModel supportsVision
selectedId
mockCAPIClientServicemakeRequest ReturnType vifn
selectedId
automodeService
chatRequest PartialChatRequest
location ChatLocationPanel
prompt
sessionId
first automodeServicechatRequest ChatRequest textOnly visionModel
selectedId
second automodeService
chatRequest
prompt
references value mimeType data
ChatRequest textOnly visionModel
first firstmodel second secondmodel first second
gpt4oEndpoint
automodeService
location ChatLocationEditor ChatLocationTerminal ChatLocationNotebook
automodeService
location
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
b btier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationEditor
prompt
sessionId
modelConfiguration tier defaultAutoModeTier
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationEditor
prompt
sessionId
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
automodeService
chatRequest
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest
automodeServicechatRequest mockChatEndpoint gpt4oEndpoint
automodeService chatRequest prompt ChatRequest mockChatEndpoint gpt4oEndpoint
automodeService chatRequest prompt modelConfiguration tier ChatRequest mockChatEndpoint gpt4oEndpoint
b btier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
automodeService
location ChatLocationEditor
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
b btier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
ConfigKeyAdvancedAutoModeTiersEnabled
ConfigKeyAdvancedAutoModeTierOverride
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
automodeService
automodeService
announced
listener automodeService announced
configurationServiceConfigKeyAdvancedAutoModeTiersEnabled
configurationServiceConfigKeyAdvancedAutoModeTierOverride
listener
announced supported automodeService announced supported
gpt4oEndpoint
automodeService
chatRequest
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest
first automodeServicechatRequest mockChatEndpoint gpt4oEndpoint
firstmodel
error
automodeService
chatRequest
prompt
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpointrejects
gpt4oEndpoint
discounted_costs
automodeService
chatRequest
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier
ChatRequest
automodeServicechatRequest mockChatEndpoint gpt4oEndpoint
discounted_costs
automodeService
chatRequest
prompt
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
discounts mockInstantiationServicecreateInstance ReturnType vifnmockcallsc c
discounts
gpt4oEndpoint
automodeService
location ChatLocationPanel ChatLocationEditor
automodeService
location
prompt
sessionId
modelConfiguration tier
ChatRequest mockChatEndpoint gpt4oEndpoint
bodies supported automodeService
bodies
prompt
prompt
supported
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest mockChatEndpoint gpt4oEndpoint
prompt tier
gpt4oEndpoint
automodeService
sessionId prompt tier automodeService
location ChatLocationPanel
prompt
sessionId
modelConfiguration tier tier
ChatRequest mockChatEndpoint gpt4oEndpoint
i i i
callsBefore length
lengthcallsBefore
automodeService
result automodeServicemockChatEndpoint
result
mockCAPIClientServicemakeRequestnot
automodeService
metadata automodeService
autoDiscount
autoDiscount
metadata requests mockCAPIClientServicemakeRequest ReturnType vifnmockcallslength
metadata discountRange low high requests
automodeService
automodeServicemockChatEndpoint discountRange low high
gpt4oEndpoint autoDiscount
automodeService
automodeService
location ChatLocationPanel
prompt
sessionId
ChatRequest gpt4oEndpoint
autoCall mockInstantiationServicecreateInstance ReturnType vifnmockcalls
discount autoCall range autoCall discount range low high