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 { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import type { AuthenticationSession, LanguageModelChatInformation } from 'vscode';
import { IAuthenticationService } from '../../../../../platform/authentication/common/authentication';
import { ConfigKey } from '../../../../../platform/configuration/common/configurationService';
import { DefaultsOnlyConfigurationService } from '../../../../../platform/configuration/common/defaultsOnlyConfigurationService';
import { InMemoryConfigurationService } from '../../../../../platform/configuration/test/common/inMemoryConfigurationService';
IVSCodeExtensionContext
ILogService
Emitter
DisposableStore
IInstantiationService
createExtensionUnitTestingServices
CopilotCLIModels
IVSCodeExtensionContext
state
extensionPath
globalState
get key defaultValue statekey defaultValue
key value statekey value
state
workspaceState
IVSCodeExtensionContext
CopilotCLIModelInfo
id name maxContextWindowTokens supportsVision
id name maxContextWindowTokens supportsVision
defaultModel CopilotCLIModelInfo LanguageModelChatInformation
id
name
tooltip
family defaultModelid
version
maxInputTokens defaultModelmaxInputTokens defaultModelmaxContextWindowTokens
maxOutputTokens defaultModelmaxOutputTokens
isUserSelectable
capabilities
imageInput defaultModelsupportsVision
toolCalling
targetChatSessionType
isDefault
models CopilotCLIModelInfo ICopilotCLISDK
_serviceBrand
getPackage vi
getAvailableModels vi modelsm
id mid
name mname
billing mmultiplier multiplier mmultiplier
capabilities
limits
max_prompt_tokens mmaxInputTokens
max_output_tokens mmaxOutputTokens
max_context_window_tokens mmaxContextWindowTokens
supports vision msupportsVision
getAuthInfo vi type token host
getRequestId vi
setRequestId vi
ICopilotCLISDK
_onDidAuthenticationChange
onDidAuthenticationChange _onDidAuthenticationChangeevent
_anyGitHubSession AuthenticationSession
hasSession
_anyGitHubSession hasSession
id accessToken scopes account id label
AuthenticationSession
_anyGitHubSession
_anyGitHubSession
session AuthenticationSession
_anyGitHubSession session
_onDidAuthenticationChange
_onDidAuthenticationChange
disposables
logService ILogService
services disposables
accessor services
logService accessorILogService
accessorIInstantiationService
disposables
options hasSession sdk ICopilotCLISDK configService MockConfigurationService models CopilotCLIModels auth MockAuthenticationService configService MockConfigurationService
auth optionshasSession
sdk optionssdk
extensionContext
configService optionsconfigService
models
sdk
extensionContext
logService
auth IAuthenticationService
configService
disposablesmodels
disposables auth
models auth configService
models hasSession
result models
result
models hasSession
result models
resultlength
resultid
resultid
sdk
models hasSession sdk
first models
second models
firstsecond
sdkgetPackage
models hasSession
result models
result
models hasSession
models
models
models hasSession
models
models hasSession
models
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
models
models
models
models hasSession
result models
result
models hasSession
result models
result
models hasSession
models
result models
result
models hasSession
models
result models
result
sdk
auth
disposables auth
extensionContext
models
sdk
extensionContext
logService
auth IAuthenticationService
disposablesmodels
models
providerOnChangeEvent
lmMock
_id provider
providerOnChangeEvent provideronDidChangeLanguageModelChatInformation
modelslmMock
fired
disposables fired
auth
fired
models auth hasSession
models
auth id accessToken scopes account id label
result models
resultlength
sdk
models auth hasSession sdk
models
initialCallCount sdkgetPackage ReturnType vifnmockcallslength
auth
models
sdkgetPackage ReturnType vifnmockcallslengthinitialCallCount
updatedModels CopilotCLIModelInfo
id name maxContextWindowTokens supportsVision
callCount
sdk
_serviceBrand
getPackage vi
getAvailableModels vi
source callCount updatedModels
sourcem
id mid
name mname
billing mmultiplier multiplier mmultiplier
capabilities
limits
max_prompt_tokens mmaxInputTokens
max_output_tokens mmaxOutputTokens
max_context_window_tokens mmaxContextWindowTokens
supports vision msupportsVision
getAuthInfo vi type token host
getRequestId vi
setRequestId vi
ICopilotCLISDK
models auth hasSession sdk
first models
firstlength
firstid
auth
second models
secondlength
secondid
capturedProvider
mock
_id provider
capturedProvider provider
capturedProvider
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
lm
modelslmmock
models
r r
result lm
resultexpect id name
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
lm
modelslmmock
r r
result lm
result
resolveModels models
sdk
_serviceBrand
getPackage vi
getAvailableModels vi resolve resolveModels resolve
getAuthInfo vi type token host
getRequestId vi
ICopilotCLISDK
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession sdk configService
lm
modelslmmock
result lm
result
r r
m
id mid name mname
capabilities limits max_context_window_tokens mmaxContextWindowTokens max_prompt_tokens mmaxInputTokens max_output_tokens mmaxOutputTokens supports vision msupportsVision
r r
afterResolve lm
afterResolvelength
afterResolveexpect id
afterResolveexpect id
afterResolveexpect id
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
lm
modelslmmock
models
r r
result lm
resultlength
resultm mid
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models auth hasSession configService
lm
modelslmmock
models
r r
beforeAuthChange lm
beforeAuthChangelength
auth
duringRefresh lm
duringRefreshexpect id
models
r r
afterRefresh lm
afterRefreshlength
afterRefreshexpect id
resolveModels models
sdk
_serviceBrand
getPackage vi
getAvailableModels vi resolve resolveModels resolve
getAuthInfo vi type token host
getRequestId vi
ICopilotCLISDK
models hasSession sdk
lm
modelslmmock
changeCount
disposableslm changeCount
r r
m
id mid name mname
capabilities limits max_context_window_tokens mmaxContextWindowTokens max_prompt_tokens mmaxInputTokens max_output_tokens mmaxOutputTokens supports vision msupportsVision
r r
changeCount
capturedProvider
mock
_id provider
capturedProvider provider
capturedProvider
sdk
_serviceBrand
getPackage vi
getAvailableModels vi
id
name
billing token_prices input_price output_price max_prompt_tokens
capabilities
limits max_prompt_tokens max_output_tokens max_context_window_tokens
supports vision
getAuthInfo vi type token host
getRequestId vi
setRequestId vi
ICopilotCLISDK
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession sdk configService
lm
modelslmmock
models
r r
result lm
model resultm mid
contextSize modelconfigurationSchemapropertiescontextSize
contextSizeenum
contextSizedefault
capturedProvider
mock
_id provider
capturedProvider provider
capturedProvider
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
lm
modelslmmock
models
r r
result lm
resultm mid
resultlength
resultexpect id
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
lm
modelslmmock
r r
result lm
result
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
models
configService
configServiceConfigKeyAdvancedCLIAutoModelEnabled
models hasSession configService
lm
modelslmmock
models
r r
result lm
resultexpect id
resultlength
sdk
_serviceBrand
getPackage vi
getAvailableModels vi
getAuthInfo vi type token host
getRequestId vi
setRequestId vi
ICopilotCLISDK
models hasSession sdk
result models
result