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 Anthropic from '@anthropic-ai/sdk';
import { CAPIClient, RequestType, type CCAModel, type IExtensionInformation } from '@vscode/copilot-api';
import { generateUuid } from '../../../../base/common/uuid.js';
import { getDevDeviceId, getMachineId } from '../../../../base/node/id.js';
import { getInternalOrg, isInternalAccount } from '../../../assignment/common/assignment.js';
import { COPILOT_LICENSE_AGREEMENT } from '../../../endpoint/common/licenseAgreement.js'
createDecorator
ILogService
IProductService
IAgentHostGitHubEndpointService
headers ReadonlyRecord
signal AbortSignal
suppressIntegrationId
role
content
messages ICopilotUtilityChatMessage
temperature
maxTokens
login
copilotignore_enabled
restricted_telemetry
analytics_tracking_id
is_staff
organization_login_list
endpoints
api
telemetry
proxy
access_type_sku
capiClient CAPIClient
expiresAt
utilityModelIdsByFamily Map
copilotSku
login
telemetryEndpoint
apiEndpoint
copilotIgnoreEnabled
restrictedTelemetryEnabled
trackingId
isInternal
isVscodeTeamMember
extensionInfo IExtensionInformation
userUrl
url
hostname
hostname urlhostname
host hostname
host host host
url
url
processenv
urlhostname
status
envelope AnthropicErrorResponse
message
message envelopeerrormessage
name
status statusText bodyText prefix CopilotApiError
envelope AnthropicErrorResponse
bodyText
parsed bodyText
parsed parsed
parsed type type
err parsed error error
err err
err type type
err message message
envelope parsed AnthropicErrorResponse
envelope
envelope
type
error
type
message bodyText
request_id
status
envelope
globalThisfetch
ICopilotApiService
restrictedTelemetryEnabled
trackingId
telemetryEndpoint
isInternal
userName
isVscodeTeamMember
copilotIgnoreEnabled
_serviceBrand
githubToken
request AnthropicMessageCreateParamsStreaming
options ICopilotApiServiceRequestOptions
AsyncGeneratorAnthropicMessageStreamEvent
githubToken
request AnthropicMessageCreateParamsNonStreaming
options ICopilotApiServiceRequestOptions
AnthropicMessage
githubToken
req AnthropicMessageCountTokensParams
options ICopilotApiServiceRequestOptions
AnthropicMessageTokensCount
githubToken options ICopilotApiServiceRequestOptions CCAModel
githubToken
body
options ICopilotApiServiceRequestOptions
Response
githubToken
request ICopilotUtilityChatCompletionRequest
options ICopilotApiServiceRequestOptions
githubToken IRestrictedTelemetryContext
githubToken
resolveUserLogingithubToken
resolveCopilotSkugithubToken
_serviceBrand
_capiBasePromise ICapiBase
_clientsByToken
_fetch FetchFunction
fetchFn FetchFunction
_logService ILogService
_productService IProductService
_gitHubEndpointService IAgentHostGitHubEndpointService
_fetch fetchFn globalThisfetch
githubToken
request AnthropicMessageCreateParamsStreaming
options ICopilotApiServiceRequestOptions
AsyncGeneratorAnthropicMessageStreamEvent
githubToken
request AnthropicMessageCreateParamsNonStreaming
options ICopilotApiServiceRequestOptions
AnthropicMessage
githubToken
request AnthropicMessageCreateParams
options ICopilotApiServiceRequestOptions
AsyncGeneratorAnthropicMessageStreamEvent AnthropicMessage
requeststream
githubToken request options
githubToken request options
_githubToken
_req AnthropicMessageCountTokensParams
_options ICopilotApiServiceRequestOptions
AnthropicMessageTokensCount
githubToken options ICopilotApiServiceRequestOptions CCAModel
capiClient githubToken
_logService
response capiClient
method
headers
optionsheaders
suppressIntegrationId optionssuppressIntegrationId
signal optionssignal
type RequestTypeModels
responseok
responsestatus responsestatus
githubToken
text response
responsestatus responsestatusText text
json response
jsondata
githubToken
body
options ICopilotApiServiceRequestOptions
Response
capiClient githubToken
requestId
requestModel
parsed body
requestModel parsedmodel
_logService
response capiClient
method
headers
optionsheaders
requestId
suppressIntegrationId optionssuppressIntegrationId
body
signal optionssignal
type RequestTypeChatResponses
_logService
responseok
responsestatus responsestatus
githubToken
text response
responsestatus responsestatusText text
response
githubToken
request ICopilotUtilityChatCompletionRequest
options ICopilotApiServiceRequestOptions
capiClient githubToken
modelId githubToken
requestId
_logService
body
model modelId
messages requestmessagesm role mrole content mcontent
stream
temperature requesttemperature
top_p
max_tokens requestmaxTokens
response capiClient
method
headers
optionsheaders
requestId
body
signal optionssignal
type RequestTypeChatCompletions
responseok
responsestatus responsestatus
githubToken
text response
responsestatus responsestatusText text
json response choices ReadonlyArray message content
content jsonchoicesmessagecontent
content
content
ICapiBase
_capiBasePromise
_capiBasePromise err
_capiBasePromise
err
_capiBasePromise
ICapiBase
machineId deviceId
err _logService err
err _logService err
extensionInfo IExtensionInformation
name
sessionId
machineId
deviceId
vscodeVersion _productServiceversion
version _productServiceversion
buildType _productServicequality
userUrl
extensionInfo userUrl
async
githubToken
request AnthropicMessageCreateParams
options ICopilotApiServiceRequestOptions
AsyncGeneratorAnthropicMessageStreamEvent
response githubToken request options
responsebody
responsebody
githubToken
request AnthropicMessageCreateParams
options ICopilotApiServiceRequestOptions
AnthropicMessage
response githubToken request options
response AnthropicMessage
githubToken
request AnthropicMessageCreateParams
stream
options ICopilotApiServiceRequestOptions
Response
capiClient githubToken
requestId
_logService
system rest request
body
rest
stream
system
system system type text system system
response capiClient
method
headers
optionsheaders
requestId
suppressIntegrationId optionssuppressIntegrationId
body
signal optionssignal
type RequestTypeChatMessages
responseok
responsestatus responsestatus
githubToken
text response
responsestatus responsestatusText text
response
githubToken CAPIClient
githubTokenentry entrycapiClient
githubToken IRestrictedTelemetryContext
client githubToken
telemetryEndpoint clientrestrictedTelemetryEnabled
clienttelemetryEndpoint
restrictedTelemetryEnabled clientrestrictedTelemetryEnabled
trackingId clienttrackingId
telemetryEndpoint
isInternal clientisInternal
userName clientlogin
isVscodeTeamMember clientisVscodeTeamMember
copilotIgnoreEnabled clientcopilotIgnoreEnabled
githubToken
githubTokenapiEndpoint
githubToken
githubTokenlogin
githubToken
githubTokencopilotSku
githubToken ICachedClient
nowSeconds Date
existing _clientsByTokengithubToken
existing
existingentry
entryexpiresAt nowSeconds
entry
_clientsByTokengithubToken
githubToken
err
_clientsByTokengithubToken
err
pending githubTokenerr
_clientsByTokengithubToken
err
_clientsByTokengithubToken pending
pending
githubToken
_clientsByTokengithubToken
githubToken ICachedClient
extensionInfo userUrl
fetch _fetch
capiClient extensionInfo
url options url
method optionsmethod
headers optionsheaders
body optionsbody
signal optionssignal AbortSignal
_logService
overrideApi processenv
overrideApi
overrideApi
_logService
capiClient endpoints api overrideApi proxy overrideApi sku
capiClient
expiresAt Date
utilityModelIdsByFamily
apiEndpoint overrideApi
restrictedTelemetryEnabled
isInternal
isVscodeTeamMember
_logService
response userUrl
method
headers
responseok
text response
responsestatus responsestatusText text
envelope ICopilotUserResponse response
internalOrganization envelopeorganization_login_list
capiClient
endpoints envelopeendpoints sku envelopeaccess_type_sku
_gitHubEndpointService
_logService envelopeendpointsapi
capiClient
expiresAt Date
utilityModelIdsByFamily
copilotSku envelopeaccess_type_sku
login envelopelogin
telemetryEndpoint envelopeendpointstelemetry
apiEndpoint envelopeendpointsapi
copilotIgnoreEnabled envelopecopilotignore_enabled
restrictedTelemetryEnabled enveloperestricted_telemetry
trackingId envelopeanalytics_tracking_id
isInternal envelopeis_staff envelopeorganization_login_list
isVscodeTeamMember internalOrganization
githubToken modelFamily
entry githubToken
cached entryutilityModelIdsByFamilymodelFamily
cached
cached
models githubToken
match modelsm mcapabilitiesfamily modelFamily
match
entryutilityModelIdsByFamilymodelFamily matchid
matchid
async body ReadableStreamUint8Array AsyncGeneratorAnthropicMessageStreamEvent
reader body
decoder
buffer
done value reader
done
buffer decodervalue stream
lines buffer
buffer lines
line lines
event line
event
event
eventtype
buffer
event buffer
event
event
eventtype
reader
reader
line AnthropicMessageStreamEvent
line
data linelength
parsed
parsed data
_logService data
parsed parsed
record parsed Record
type recordtype
type
type
rawError parsed error error
envelope AnthropicErrorResponse
rawError rawError
rawError type type
rawError message message
envelope parsed AnthropicErrorResponse
errorMessage
rawError
errorMessage rawError
rawError message message
errorMessage rawError message message
errorMessage
envelope
type
error type message errorMessage
request_id
envelope
type
parsed AnthropicMessageStreamEvent