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 { Attachment, SendOptions, SessionOptions, ToolExecutionCompleteEvent, ToolExecutionStartEvent } from '@github/copilot/sdk';
import * as l10n from '@vscode/l10n';
import * as cp from 'child_process';
import * as crypto from 'crypto';
import type * as vscode from 'vscode';
import type { ChatParticipantToolToken } from 'vscode';
import { IAuthenticationService } from '../../../../platform/authentication/common/authentication'
IChatQuotaService QuotaSnapshot QuotaSnapshots
getQuotaMessageForPlan
ConfigKey IConfigurationService
IGitService
PermissiveAuthRequiredError
ILogService
GenAiMetrics
CopilotChatAttr GenAiAttr GenAiOperationName GenAiProviderName IOTelService ISpanHandle resolveWorkspaceOTelMetadata SpanKind SpanStatusCode TraceContext truncateForOTel workspaceMetadataToOTelAttributes
CapturingToken
IRequestLogger LoggedRequestKind
ITelemetryService
PromptTokenCategory PromptTokenLabel
IWorkspaceService
raceCancellation
CancellationToken CancellationTokenSource
Codicon
Emitter
createSingleCallFunction
DisposableStore IDisposable toDisposable
truncate
ThemeIcon
IInstantiationService
ChatResponseMarkdownPart ChatResponseThinkingProgressPart ChatSessionStatus ChatToolInvocationPart EventEmitter MarkdownString Uri
IToolsService
IChatSessionMetadataStore
ExternalEditTracker
getWorkingDirectory isIsolationEnabled IWorkspaceInfo
clearTodoList enrichToolInvocationWithSubagentMetadata isCopilotCliEditToolCall isCopilotCLIToolThatCouldRequirePermissions isTodoRelatedSqlQuery processToolExecutionComplete processToolExecutionStart stripReminders ToolCall updateTodoListFromSqlItems
clearPendingCopilotCLIRequestContext setPendingCopilotCLIRequestContext
LocalSession Session SessionIdForCLI
getCopilotCLISessionDir
CopilotCliBridgeSpanProcessor
ICopilotCLIImageSupport
handleExitPlanMode
MissionControlApiClient
handleMcpPermission handleReadPermission handleShellPermission handleWritePermission showInteractivePermissionPrompt
TodoSqlQuery
IQuestion IQuestionAnswer IUserQuestionHandler
copilotCLICommands CopilotCLICommand
message
message
name
mcSessionId
mcFrontendUrl
mcMode MissionControlMode
mcEventBuffer McEvent
mcCompletedCommandIds
mcPendingPermissionRequests Map result PermissionRequestResult
mcPendingUserInputRequests SetMcPendingUserInputRequest
mcFlushInterval ReturnType setInterval
mcPollInterval ReturnType setInterval
mcLastEventId
mcLastSubmitAttemptTimeMs
mcProcessedCommandIds Set
mcPendingCommandCompletionIds Set
mcSdkSession Session
mcEventListenerDispose
mcSessionResource Uri
mcStateBySessionId
_stream vscodeChatResponseStream
_routedStream vscodeChatResponseStream
markdown value vscodeMarkdownString value
anchor value vscodeUri vscodeLocation title value title
button command vscodeCommand command
filetree value vscodeChatResponseFileTree baseUri vscodeUri value baseUri
progress value task progress vscodeProgressvscodeChatResponseWarningPart vscodeChatResponseReferencePart Thenable value task
reference value vscodeUri vscodeLocation variableName value vscodeUri vscodeLocation iconPath vscodeUri vscodeThemeIcon light vscodeUri dark vscodeUri value iconPath
push part vscodeExtendedChatResponsePart part
thinkingProgress thinkingDelta vscodeThinkingDelta thinkingDelta
hookProgress hookType vscodeChatHookType stopReason systemMessage hookType stopReason systemMessage
voiceProgress id value id value
textEdit target vscodeUri editsOrDone vscodeTextEdit vscodeTextEdit target editsOrDone
notebookEdit target vscodeUri editsOrDone vscodeNotebookEdit vscodeNotebookEdit target editsOrDone
workspaceEdit edits vscodeChatWorkspaceFileEdit edits
externalEdit target vscodeUri vscodeUri Thenable Thenable target callback Thenable
markdownWithVulnerabilities value vscodeMarkdownString vulnerabilities vscodeChatVulnerability value vulnerabilities
codeblockUri uri vscodeUri isEdit uri isEdit
confirmation title message vscodeMarkdownString data buttons title message data buttons
questionCarousel questions vscodeChatQuestion allowSkip ThenableRecord questions allowSkip ThenableRecord
warning message vscodeMarkdownString message
info message vscodeMarkdownString message
reference2 value vscodeUri vscodeLocation variableName value vscodeUri vscodeLocation iconPath vscodeUri vscodeThemeIcon light vscodeUri dark vscodeUri options status description kind vscodeChatResponseReferencePartStatusKind value iconPath options
codeCitation value vscodeUri license snippet value license snippet
beginToolInvocation toolCallId toolName streamData vscodeChatToolInvocationStreamData subagentInvocationId toolCallId toolName streamData
updateToolInvocation toolCallId streamData vscodeChatToolInvocationStreamData toolCallId streamData
clearToPreviousToolInvocation reason vscodeChatResponseClearToPreviousToolInvocationReason reason
usage usage vscodeChatResultUsage usage
_closedStreamErrorFragment
_logService ILogService
_sessionId
vscodeChatResponseStream
_routedStream
stream vscodeChatResponseStream IDisposable
_stream stream
_stream stream
_stream
error
error
message error errormessage error
messageCopilotCLIResponseStreamRouter_closedStreamErrorFragment
method args
stream _stream
stream
method args
fn stream Record method
fn
method args
result stream args
method method
resulterror error method args stream
result
error
error method args stream
error method args stream vscodeChatResponseStream
CopilotCLIResponseStreamRoutererror
_stream stream
_stream
_logService
method args
error
method args
method
callback args
callback
callback Thenable
method
mode
promptId
approved
scope
answer
wasFreeform
requestId
toolCallId
result UserInputResponse
requestId
promptId
toolCallId
answer
wasFreeform
freeText
selected
skipped
response
answer
wasFreeform
freeText
selected
skipped
skippedMissionControlEventTypes
event type data
eventType eventtype
skippedMissionControlEventTypeseventType
eventType eventType
toolName eventdata eventdata eventdata
eventdatatoolName
toolName
event type data
eventtype
source eventdata eventdata eventdata
eventdatasource
source source
sourcelength
content MissionControlMode
trimmedContent content
trimmedContent
parsed trimmedContent McModeCommandData
parsedmode
parsedmode
source SendOptions
source source
event type data
eventtype
title eventdata eventdata eventdata
eventdatatitle
title titlelength title
event type data Record
eventdata eventdata
data eventdata Record
eventtype
content datacontent
content
data
sanitizedContent content
sanitizedContent content data data content sanitizedContent
eventtype
data
toolName datatoolName
toolName toolName toolName
data
args dataarguments
args args args
data
description _description sanitizedArgs args Record
data arguments sanitizedArgs
state McSharedState Set
statemcPendingCommandCompletionIds
statemcPendingCommandCompletionIds
state McSharedState SetMcPendingUserInputRequest
statemcPendingUserInputRequests
statemcPendingUserInputRequests
state McSharedState payload McAskUserResponsePayload McPendingUserInputRequest
pendingRequests state
identifiers
payloadrequestId
payloadpromptId
payloadtoolCallId
value value value valuelength
identifierslength
pendingRequestsrequest
identifiersrequestrequestId
requesttoolCallId identifiersrequesttoolCallId
pendingRequestslength pendingRequests
answer IQuestionAnswer UserInputResponse
answer
answer wasFreeform
answerfreeText
answer answerfreeText wasFreeform
answer answerselected wasFreeform
payload McAskUserResponsePayload rawContent UserInputResponse
response payloadresponse payload
answer responseanswer
responseanswer
responsefreeText
responsefreeText
responseselected
responseselectedvalue value value
responseskipped
payload
rawContent
answer
answer
wasFreeform responsewasFreeform
responsewasFreeform
responsefreeText
state McSharedState event type data
commandId event
commandId
statecommandId
statemcCompletedCommandIdscommandId
builtinSlashCommands builtinSlashSCommands
prompt source SendOptions
prompt command CopilotCLICommand source SendOptions
input CopilotCLISessionInput
input
prompt inputprompt
prompt
inputprompt
input CopilotCLISessionInput
prompt input inputprompt
prompt prompt
commandPrefix
promptcommandPrefix
promptcommandPrefixlength
prompt
QrMaskPattern
Pattern0
Pattern1
Pattern2
Pattern3
Pattern4
Pattern5
Pattern6
Pattern7
qrVersion
qrSize qrVersion
qrDataCodewords
qrDataBlocks
qrDataCodewordsPerBlock
qrErrorCodewordsPerBlock
qrQuietZoneModules
qrSvgModuleSize
qrGfExp
qrGfLog
qrGfExp
value
i i i
qrGfExpi value
qrGfLogvalue i
value
value
value
i i qrGfExplength i
qrGfExpi qrGfExpi
a b
a b
qrGfExpqrGfLoga qrGfLogb
degree
polynomial
i i degree i
next polynomiallength
j j polynomiallength j
nextj polynomialj
nextj polynomialj qrGfExpi
polynomial next
polynomial
data degree
generator degree
result degree
codeword data
factor codeword result
result
result
i i degree i
resulti generatori factor
result
bits value length
i length i i
bitsvalue i
data
bytes Bufferdata
byteslength
bits
bits
bits byteslength
byte bytes
bits byte
i i bitslength qrDataCodewords i
bits
bitslength
bits
codewords
i i bitslength i
codeword
j j j
codeword codeword bitsi j
codewordscodeword
pad codewordslength qrDataCodewords pad
codewordspad
codewords
data
dataCodewords data
blocks data error
i i qrDataBlocks i
blockData dataCodewordsi qrDataCodewordsPerBlock i qrDataCodewordsPerBlock
blocks data blockData error blockData qrErrorCodewordsPerBlock
result
i i qrDataCodewordsPerBlock i
block blocks
resultblockdatai
i i qrErrorCodewordsPerBlock i
block blocks
resultblockerrori
result
modules reserved
modules length qrSize qrSize
reserved length qrSize qrSize
x y dark
x y x qrSize y qrSize
modulesyx dark
reservedyx
x y
dy dy dy
dx dx dx
isPattern dx dx dy dy
dx dx dy dy dx dx dy dy
x dx y dy isPattern
qrSize
qrSize
i i qrSize i
i i
i i
dy dy dy
dx dx dx
dx dy MathMathdx Mathdy dx dy
qrVersion
i i i
i
i
i
i i i
qrSize i
i i i
qrSize i
modules reserved
mask QrMaskPattern x y
mask
QrMaskPatternPattern0 x y
QrMaskPatternPattern1 y
QrMaskPatternPattern2 x
QrMaskPatternPattern3 x y
QrMaskPatternPattern4 Mathy Mathx
QrMaskPatternPattern5 x y x y
QrMaskPatternPattern6 x y x y
QrMaskPatternPattern7 x y x y
modules mask QrMaskPattern
format mask
remainder format
i i i
remainder i
remainder i
format format remainder
x y bitIndex
modulesyx format bitIndex
i i i
i i
i i i
i i
i i i
qrSize i i
i i i
qrSize i i
modules
penalty
line
runColor line
runLength
i i linelength i
i linelength linei runColor
runLength
runLength
penalty runLength
runColor linei
runLength
y y qrSize y
modulesy
x x qrSize x
modulesrow rowx
y y qrSize y
x x qrSize x
color modulesyx
modulesyx color modulesy x color modulesy x color
penalty
finderPattern
reverseFinderPattern
line
text linebit bit
i i textlength finderPatternlength i
slice texti i finderPatternlength
slice finderPattern slice reverseFinderPattern
penalty
y y qrSize y
modulesy
x x qrSize x
modulesrow rowx
darkModules modulesBooleanlength
darkPercent darkModules qrSize qrSize
penalty MathMathdarkPercent
penalty
data
codewordBits datacodeword
bits
bits codeword
bits
bestModules
bestPenalty Number
mask mask mask
modules reserved
bitIndex
upward
right qrSize right right
right
right
vertical vertical qrSize vertical
y upward qrSize vertical vertical
column column column
x right column
reservedyx
bit bitIndex codewordBitslength codewordBitsbitIndex
modulesyx bit mask x y
upward upward
modules mask
penalty modules
penalty bestPenalty
bestPenalty penalty
bestModules modules
bestModules
bestModules
data
modules data
imageSize qrSize qrQuietZoneModules qrSvgModuleSize
path modulesrow y rowdark x
dark
moduleX x qrQuietZoneModules qrSvgModuleSize
moduleY y qrQuietZoneModules qrSvgModuleSize
svg
sessionId
title
createdPullRequestUrl
onDidChangeTitle vscodeEvent
status vscodeChatSessionStatus
onDidChangeStatus vscodeEventvscodeChatSessionStatus
workspace IWorkspaceInfo
additionalWorkspaces IWorkspaceInfo
pendingPrompt
stream vscodeChatResponseStream IDisposable
level
request id toolInvocationToken ChatParticipantToolToken sessionResource vscodeUri
input CopilotCLISessionInput
attachments Attachment
model model reasoningEffort contextTier
authInfo NonNullableSessionOptions
token vscodeCancellationToken
content
content
sessionId
_createdPullRequestUrl
_createdPullRequestUrl
_status vscodeChatSessionStatus
vscodeChatSessionStatus
_status
_statusChange
onDidChangeStatus _statusChangeevent
_title
_title
_onDidChangeTitle
onDidChangeTitle _onDidChangeTitleevent
_streamRouter CopilotCLIResponseStreamRouter
_stream vscodeChatResponseStream
_toolInvocationToken ChatParticipantToolToken
_sdkSession
_workspaceInfo
_additionalWorkspaces
_lastUsedModel
_permissionLevel
_lastResponseModelId
_pendingPrompt
_bridgeProcessor CopilotCliBridgeSpanProcessor
_todoSqlQuery
_missionControlApiClient MissionControlApiClient
_cancelPendingCancellationAbort
McSharedState
mcStateBySessionIdsessionId
_updateSdkTraceContext traceparent tracestate
_pendingPrompt
bridge CopilotCliBridgeSpanProcessor
_bridgeProcessor bridge
updater traceparent tracestate
_updateSdkTraceContext updater
_workspaceInfo IWorkspaceInfo
_agentName
_sdkSession Session
_additionalWorkspaces IWorkspaceInfo
_sandboxConfig SessionOptions
logService ILogService
workspaceService IWorkspaceService
_chatSessionMetadataStore IChatSessionMetadataStore
instantiationService IInstantiationService
_requestLogger IRequestLogger
_imageSupport ICopilotCLIImageSupport
_toolsService IToolsService
_userQuestionHandler IUserQuestionHandler
configurationService IConfigurationService
_otelService IOTelService
_gitService IGitService
_authenticationService IAuthenticationService
_chatQuotaService IChatQuotaService
_telemetryService ITelemetryService
sessionId _sdkSessionsessionId
_streamRouter logService sessionId
_stream _streamRouterstream
_missionControlApiClient instantiationServiceMissionControlApiClient
_todoSqlQuery
stream vscodeChatResponseStream IDisposable
_streamRouterstream
level
_permissionLevel level
_sandboxConfigenabled
base _sandboxConfig
sandboxConfig baseenabled base enabled
_sdkSession sandboxConfig
error
logServiceerror
attachments Attachment
previousRequest
request id toolInvocationToken ChatParticipantToolToken sessionResource vscodeUri
input CopilotCLISessionInput
attachments Attachment
model model reasoningEffort contextTier
authInfo NonNullableSessionOptions
token vscodeCancellationToken
isDisposed
label input
promptLabel label
capturingToken sessionId
isAlreadyBusyWithAnotherRequest _status _status ChatSessionStatusInProgress _status ChatSessionStatusNeedsInput
_toolInvocationToken requesttoolInvocationToken
previousRequestSnapshot previousRequest
handled _requestLoggercapturingToken
modelmodel modelreasoningEffort modelcontextTier authInfo token
isAlreadyBusyWithAnotherRequest
input attachments model previousRequestSnapshot token
request input attachments model token
previousRequest previousRequest handled
handled
input CopilotCLISessionInput
attachments Attachment
model model reasoningEffort contextTier
previousRequestPromise
token vscodeCancellationToken
attachmentsattachments
prompt input
_pendingPrompt prompt
disposables
logStartTime Date
disposablestoken
_cancelPendingCancellationAbort
_sdkSession
disposables _sdkSession
input inputcommand
_cancelPendingCancellationAbort
previousRequestPromise
tokenisCancellationRequested
_stream
input attachments logStartTime
previousRequestPromise input attachments logStartTime
prompt modelmodel attachments logStartTime
error
prompt modelmodel attachments logStartTime error errormessage error
error
disposables
request id toolInvocationToken ChatParticipantToolToken sessionResource vscodeUri
input CopilotCLISessionInput
attachments Attachment
model model reasoningEffort contextTier
token vscodeCancellationToken
modelId modelmodel
promptLabel input
_otelService
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr
GenAiAttr GenAiProviderName
GenAiAttr sessionId
CopilotChatAttr sessionId
CopilotChatAttr sessionId
modelId GenAiAttr modelId
CopilotChatAttr promptLabel _otelServiceconfigmaxAttributeSizeChars
_gitService
span
span content promptLabel _otelServiceconfigmaxAttributeSizeChars
traceCtx span
traceCtx _bridgeProcessor
_bridgeProcessortraceCtxtraceId sessionId
traceCtx _updateSdkTraceContext
traceparent
traceparent
span request input attachments modelId token
traceCtx _bridgeProcessor
_bridgeProcessortraceCtxtraceId
_updateSdkTraceContext
invokeAgentSpan ISpanHandle
request id toolInvocationToken ChatParticipantToolToken sessionResource vscodeUri
input CopilotCLISessionInput
attachments Attachment
modelId
token vscodeCancellationToken
attachmentsattachments
prompt input
_pendingPrompt prompt
_lastResponseModelId
_chatQuotaServicerequestid
logService
disposables
logStartTime Date
requestStream _stream
wroteResponseContent
cancelCancellationAbort
disposablestoken
abortHandle
_cancelPendingCancellationAbort cancelAbort
_cancelPendingCancellationAbort
abortHandle
_cancelPendingCancellationAbort cancelAbort
_cancelPendingCancellationAbort
wroteResponseContent
requestStreaml10n
wroteResponseContent
error
logService
_sdkSession
_cancelPendingCancellationAbort
_cancelPendingCancellationAbort cancelAbort
cancelCancellationAbort cancelAbort
disposables _sdkSession
_status ChatSessionStatusInProgress
_statusChange_status
pendingToolInvocations
editToolIds
toolCalls
toolStartTimes
syntheticToolSpans
modelTurnUsages IModelTurnUsage
invokeAgentTraceContext invokeAgentSpan
editTracker
sdkRequestId
isQuotaError
toolIdEditMap
remoteMode inputsource _mcStatemcMode
effectivePermissionLevel remoteMode remoteMode _permissionLevel
_toolsService requesttoolInvocationToken tokenerr
logServiceerr
toolCallWaitingForPermissions ChatToolInvocationPart ToolCall
invocationMessage toolCallWaitingForPermissions
requestStreaminvocationMessage
toolCallWaitingForPermissionslength
toolCallId
toolCallId
index toolCallWaitingForPermissions tc tctoolCallId toolCallId
index
invocationMessage toolCallWaitingForPermissionsindex
requestStreaminvocationMessage
chunkMessageIds
assistantMessageChunks
lastEmittedAssistantMessageId
incomingMessageId
incomingMessageId
lastEmittedAssistantMessageId
incomingMessageId lastEmittedAssistantMessageId
requestStream
incomingMessageId
lastEmittedAssistantMessageId incomingMessageId
lastUsageInfo UsageInfoData
promptTokens completionTokens
tokenisCancellationRequested requestStream
requestStream
promptTokens
completionTokens
promptTokenDetails lastUsageInfo
updateUsageInfo
metrics _sdkSessionusage
promptTokens lastUsageInfocurrentTokens metricslastCallInputTokens
promptTokens metricslastCallOutputTokens
shouldHandleExitPlanModeRequests configurationServiceConfigKeyAdvancedCLIPlanExitModeEnabled
disposables_sdkSession event
event
event
disposables_sdkSession event
permissionRequest eventdatapermissionRequest
requestId eventdatarequestId
isSandboxBypassShell permissionRequestkind permissionRequestrequestSandboxBypass
isSandboxBypassShell effectivePermissionLevel effectivePermissionLevel
logService
_sdkSessionrequestId kind
isSandboxBypassShell permissionRequestkind _sandboxEnabled
logService
_sdkSessionrequestId kind
toolData permissionRequesttoolCallId toolCallspermissionRequesttoolCallId
pendingData permissionRequesttoolCallId pendingToolInvocationspermissionRequesttoolCallId
toolParentCallId pendingData pendingData
toolInvocationToken _toolInvocationToken
resolveLocalPermissionResponse permissionToken CancellationToken PermissionRequestResult
permissionRequestkind
sessionId permissionRequest toolParentCallId
attachments _imageSupport workspace workspaceService
_toolsService toolInvocationToken logService permissionToken
sessionId permissionRequest toolData toolParentCallId
requestStream editTracker workspace workspaceService
instantiationService _toolsService toolInvocationToken logService permissionToken
permissionRequest toolParentCallId
workspace _toolsService toolInvocationToken logService permissionToken
permissionRequest toolParentCallId
_toolsService toolInvocationToken logService permissionToken
permissionRequest toolParentCallId
_toolsService toolInvocationToken logService permissionToken
response PermissionRequestResult
isSandboxBypassShell effectivePermissionLevel effectivePermissionLevel
logService
response kind
_mcState
permissionResolutionTokenSource token
response
permissionResolutionTokenSourcetoken
_mcState permissionRequest requestId permissionResolutionTokenSourcetoken
permissionResolutionTokenSource
response token
permissionRequesttoolCallId
_requestLogger
type LoggedRequestKindMarkdownContentRequest
debugName
startTimeMs Date
icon Codiconquestion
markdownContent permissionRequest responsekind
isConversationRequest
_sdkSessionrequestId response
error
logServiceerror
permissionRequesttoolCallId
_sdkSessionrequestId kind
shouldHandleExitPlanModeRequests
disposables_sdkSession event
response
eventdata
_sdkSession
effectivePermissionLevel
_toolInvocationToken
workspaceService
logService
_toolsService
token
_sdkSessioneventdatarequestId response
error
logServiceerror
_sdkSessioneventdatarequestId approved
disposables_sdkSession event
_toolInvocationToken
logService
_sdkSessioneventdatarequestId answer wasFreeform
userInputRequest IQuestion
question eventdataquestion
options eventdatachoices c label c
allowFreeformInput eventdataallowFreeform
header eventdataquestion
response UserInputResponse
_mcState
userInputResolutionTokenSource token
localQuestionPromise _userQuestionHandleruserInputRequest _toolInvocationToken userInputResolutionTokenSourcetoken eventdatatoolCallId
remoteQuestionPromise _mcState eventdatarequestId eventdatatoolCallId userInputResolutionTokenSourcetoken
result
localQuestionPromiseanswer source response answer
remoteQuestionPromiseresult source response result
resultsource resultresponse eventdatatoolCallId
_userQuestionHandlernotifyQuestionCarouselAnswereventdatatoolCallId userInputRequest resultresponse
response resultresponse answer wasFreeform
userInputResolutionTokenSource
response _userQuestionHandleruserInputRequest _toolInvocationToken token eventdatatoolCallId
_sdkSessioneventdatarequestId response
disposables_sdkSession event
_title eventdatatitle
_onDidChangeTitleeventdatatitle
disposables_sdkSession event
sdkRequestId sdkRequestId eventid
disposables_sdkSession event
_lastResponseModelId eventdatamodel
requestStream eventdataoutputTokens eventdatainputTokens
eventdatainputTokens eventdataoutputTokens
copilotUsage eventdata Record copilotUsage
copilotUsageNanoAiu
copilotUsage copilotUsage
totalNanoAiu copilotUsage totalNanoAiu
totalNanoAiu
copilotUsageNanoAiu totalNanoAiu
_chatQuotaServicetotalNanoAiu requestid
eventdataquotaSnapshots
_chatQuotaServiceeventdataquotaSnapshots
modelTurnUsages
model eventdatamodel
inputTokens eventdatainputTokens
outputTokens eventdataoutputTokens
cacheReadTokens eventdatacacheReadTokens
copilotUsageNanoAiu
parentToolCallId eventdataparentToolCallId
disposables_sdkSession event
lastUsageInfo
currentTokens eventdatacurrentTokens
systemTokens eventdatasystemTokens
conversationTokens eventdataconversationTokens
toolDefinitionsTokens eventdatatoolDefinitionsTokens
tokenLimit eventdatatokenLimit
lastUsageInfocurrentTokens
disposables_sdkSession event
eventdatadeltaContent eventdatadeltaContentlength
eventdataparentToolCallId
eventdatamessageId
chunkMessageIdseventdatamessageId
assistantMessageChunkseventdatadeltaContent
wroteResponseContent
requestStreameventdatadeltaContent
disposables_sdkSession event
eventdatacontent eventdatacontentlength chunkMessageIdseventdatamessageId
eventdataparentToolCallId
assistantMessageChunkseventdatacontent
eventdatamessageId
wroteResponseContent
requestStreameventdatacontent
disposables_sdkSession event
toolCallseventdatatoolCallId eventdata ToolCall
toolStartTimeseventdatatoolCallId Date
_bridgeProcessor
event syntheticToolSpans invokeAgentTraceContext
eventdata
editToolIdseventdatatoolCallId
responsePart event pendingToolInvocations workspace
responsePart
wroteResponseContent
requestStreamresponsePart
requestStream vscodeReasoningDone
responsePart
responsePart
responsePartenablePartialUpdate
event
toolCallWaitingForPermissionsresponsePart eventdata ToolCall
wroteResponseContent
requestStreamresponsePart
disposables_sdkSession event
toolCall toolCallseventdatatoolCallId
toolName toolCalltoolName
toolName eventdatasuccess
pullRequestUrl eventdataresult
pullRequestUrl
_createdPullRequestUrl pullRequestUrl
GenAiMetrics_otelService
event toolCall toolStartTimes requestsessionResource
eventError eventdataerror eventdataerror code eventdataerrorcode
eventData eventdata error eventError
eventdatatoolCallId toolName toolCallarguments eventData
event syntheticToolSpans
toolIdEditMapeventdatatoolCallId editTrackereventdatatoolCallId
editToolIdseventdatatoolCallId
responsePart event pendingToolInvocations logService workspace
responsePart
eventdatatoolCallId
responsePart
responsePartenablePartialUpdate
wroteResponseContent
requestStreamresponsePart
toolName eventdatasuccess
query toolCallarguments query query
query
sessionDir sessionId
_todoSqlQuerysessionDiritems
tokenisCancellationRequested
items _toolsService requesttoolInvocationToken token
err
logServiceerr
ex
logServiceex
disposables_sdkSession event
logService
eventdataerrorType eventdatastatusCode
isQuotaError
requestStreaml10n eventdataerrorType eventdatamessage
errorMarkdown eventdatastack
_requestLogger
type LoggedRequestKindMarkdownContentRequest
debugName
startTimeMs Date
icon Codiconerror
markdownContent errorMarkdown
isConversationRequest
disposables_sdkSession event
eventdatatoolCallId
eventdataagentDisplayName
eventdataagentDescription
pendingToolInvocations
disposables_sdkSession event
logService
disposables_sdkSession event
logService
input
input eventdatainput _otelServiceconfigmaxAttributeSizeChars
_bridgeProcessoreventdatahookInvocationId eventdatahookType input
disposables_sdkSession event
logService
resultKind eventdatasuccess
output
eventdatasuccess
output eventdataoutput _otelServiceconfigmaxAttributeSizeChars
_bridgeProcessor
eventdatahookInvocationId
eventdatahookType
output
resultKind
eventdataerrormessage
tokenisCancellationRequested
input attachments logStartTime
isQuotaError
_chatQuotaService
plan
isUsageBasedBilling
quotaResetDate
copilotToken _authenticationService
plan copilotTokencopilotPlan
isUsageBasedBilling copilotTokentokenBasedBilling
quotaResetDate copilotTokenquotaInfoquota_reset_date
plan isUsageBasedBilling quotaResetDate
logService
resolvedToolIdEditMap Record
toolIdEditMap toolId editFilePromise
editId editFilePromise
editId
resolvedToolIdEditMaptoolId editId
sdkRequestId
_chatSessionMetadataStoresessionId
vscodeRequestId requestid
copilotRequestId sdkRequestId
toolIdEditMap resolvedToolIdEditMap
agentId _agentName
error
logService error
updateUsageInfoerror
logService error
_status ChatSessionStatusCompleted
_statusChange_status
prompt assistantMessageChunks modelId attachments logStartTime
error
error
error
isQuotaError
_chatQuotaService
plan
isUsageBasedBilling
quotaResetDate
copilotToken _authenticationService
plan copilotTokencopilotPlan
isUsageBasedBilling copilotTokentokenBasedBilling
quotaResetDate copilotTokenquotaInfoquota_reset_date
plan isUsageBasedBilling quotaResetDate
_status ChatSessionStatusFailed
_statusChange_status
logService error
errorMessage error errormessage error
requestStreaml10n errorMessage
invokeAgentSpanSpanStatusCode errorMessage
error
invokeAgentSpanerror
prompt assistantMessageChunks modelId attachments logStartTime errorMessage
cancelCancellationAbort
_bridgeProcessor
modelTurnUsages assistantMessageChunks _lastResponseModelId modelId invokeAgentTraceContext
toolSpan syntheticToolSpans
toolSpanSpanStatusCode
toolSpan
syntheticToolSpans
durationSec Date logStartTime
invokeAgentSpan durationSec
invokeAgentSpan
_pendingPrompt
disposables
modelId reasoningEffort contextTier authInfo NonNullableSessionOptions token CancellationToken
currentModel
modelId
_lastUsedModel
currentModel _lastUsedModel
currentModel _sdkSession token
tokenisCancellationRequested
optionsUpdate Record
authInfo
optionsUpdateauthInfo authInfo
contextTier
optionsUpdatecontextTier contextTier
ObjectoptionsUpdatelength
_sdkSessionoptionsUpdate
modelId
modelId currentModel
_lastUsedModel modelId
configurationServiceConfigKeyAdvancedCLIThinkingEffortEnabled
_sdkSessionmodelId reasoningEffort token
_sdkSessionmodelId token
reasoningEffort _sdkSession reasoningEffort configurationServiceConfigKeyAdvancedCLIThinkingEffortEnabled
_sdkSessionmodelId reasoningEffort token
shouldHandleExitPlanModeRequests configurationServiceConfigKeyAdvancedCLIPlanExitModeEnabled
shouldHandleExitPlanModeRequests _toolsService _toolInvocationToken
artifacts label uri type
planPath _sdkSession
planPath
artifacts label l10n uri UriplanPath type
_toolsService
input artifacts toolInvocationToken _toolInvocationToken CancellationTokenNone
error
logServiceerror
input CopilotCLISessionInput attachments Attachment steering logStartTime
prompt input
prompt _lastUsedModel attachments logStartTime
input inputcommand
inputcommand
_streaml10n
_sdkSession
_sdkSessioncurrentMode
result _sdkSession
resultsuccess
_streaml10n
_streaml10n
input
input
remoteMode inputsource _mcStatemcMode
remoteMode
_sdkSessioncurrentMode remoteMode
input inputcommand
_sdkSessioncurrentMode
_permissionLevel
_sdkSessioncurrentMode
_sdkSessioncurrentMode
sendOptions SendOptions prompt inputprompt attachments agentMode _sdkSessioncurrentMode
steering
sendOptionsmode
inputsource
sendOptionssource inputsource
_sdkSessionsendOptions
localSession _sdkSession LocalSession
localSessionwaitForPendingBackgroundTasks
localSession
error
logServiceerror
input CopilotCLISessionInput
prompt input inputprompt
promise resolve
off _sdkSession
_permissionLevel
_sdkSessioncurrentMode
_sdkSessioncurrentMode
result _sdkSessionfleet prompt
resultstarted
logService
promise
error
logService
input CopilotCLISessionInput
configurationServiceConfigKeyAdvancedCLIRemoteEnabled
_streaml10n
args input
isCurrentlyActive _mcState
args
args args
_streaml10n
args isCurrentlyActive
args isCurrentlyActive
args
_streaml10n
_streaml10n
session _authenticationService silent
sessionaccessToken
_streaml10n
githubToken sessionaccessToken
workingDir _workspaceInfo
workingDir
_streaml10n
nwo workingDir
nwo
_streaml10n
repoResponse
headers
repoResponseok
_streaml10n nwoowner nworepo
repoData repoResponse id owner id
agentTaskId
logService
mcData McSessionCreateResult
mcData _missionControlApiClientrepoDataownerid repoDataid agentTaskId
err
err
_streaml10n
err
taskId mcDatataskId
sharedState McSharedState
mcSessionId mcDataid
mcFrontendUrl
mcEventBuffer
mcCompletedCommandIds
mcPendingPermissionRequests
mcFlushInterval
mcPollInterval
mcLastEventId
mcLastSubmitAttemptTimeMs Date
mcProcessedCommandIds
mcPendingCommandCompletionIds
mcSdkSession _sdkSession
mcEventListenerDispose
mcSessionResource SessionIdForCLIsessionId
mcStateBySessionIdsessionId sharedState
logService
sessionStartEvent
sessionId sharedStatemcSessionId
version
producer
copilotVersion
startTime
remoteSteerable
context
cwd workingDir
gitRoot workingDir
repository
sharedStatemcEventBuffersessionStartEvent
sharedStatemcEventBuffer
remoteSteerable
sessionTitle
sessionTitle
sharedStatemcEventBuffer
title sessionTitle
replayableTypes
existingEvents _sdkSession
replayed
event existingEvents
e event type data id timestamp parentId
etype replayableTypesetype
e
replayed
logService
sessionId sessionId
sharedStatemcEventListenerDispose _sdkSession event
state mcStateBySessionIdsessionId
state
eventType event type type
e event type data id timestamp parentId ephemeral
e
updatedTitle e
updatedTitle
_title updatedTitle
state e
eid etimestamp
statemcEventBuffer
id eid
timestamp etimestamp
parentId eparentId statemcLastEventId
ephemeral eephemeral
type eventType
data e
statemcLastEventId eid
id crypto
statemcEventBuffer
id
timestamp
parentId statemcLastEventId
type eventType
data e
statemcLastEventId id
frontendUrl
sharedStatemcFrontendUrl frontendUrl
logService
frontendUrl
error
logService
_streaml10n error errormessage error
state _mcState
state
_streaml10n
statemcFrontendUrl
statemcFrontendUrl
_streaml10n
frontendUrl
banner
banner
qrDataUrl frontendUrl
banner
error
logService
bannerl10n frontendUrl
_streambanner
_stream
command
arguments UrifrontendUrl
title l10n
state _mcState
state
logService
statemcEventListenerDispose
state
statemcEventListenerDispose
pendingRequest statemcPendingPermissionRequests
pendingRequest kind
statemcPendingPermissionRequests
pendingRequest state
pendingRequest
state
statemcEventBuffer
remoteSteerable
statemcEventBuffer
mcStateBySessionIdsessionId
logService
workingDirectory vscodeUri owner repo
resolve
cp cwd workingDirectoryfsPath timeout _error stdout
stdout
url stdout
match url
matchgroups
owner matchgroupsowner repo matchgroupsrepo
state _mcState
state
statemcFlushInterval
err
logService
logService
clearBuffer
state _mcState
statemcFlushInterval
statemcFlushInterval
statemcFlushInterval
state clearBuffer
statemcEventBufferlength
event type data
configurationServiceConfigKeyAdvancedCLISessionEventLoggingEnabled
type eventtype
type
data eventdata Record
get keys
key keys
value datakey
value
value
getNested key sub
value datakey
value value value Record sub
type
name
input
logService
name
success
sandboxed
result dataresult Record
content resultcontent resultcontent
rawError dataerror
errorMessage rawError
rawError
rawError rawError rawError Record message
rawError message message
errorMessage
logService
logService
kind
logService
text
logService
logService
logService
e
logService
event type data id timestamp parentId ephemeral
state _mcState
eventType eventtype
state
event
updatedTitle event
updatedTitle
_title updatedTitle
state event
logService
eventid eventtimestamp
mcEvent McEvent
id eventid
timestamp eventtimestamp
parentId eventparentId statemcLastEventId
ephemeral eventephemeral
type eventType
data event
statemcLastEventId eventid
statemcEventBuffermcEvent
statemcEventBuffereventType event
type data Record ephemeral McEvent
state _mcState
id crypto
event McEvent
id
timestamp
parentId statemcLastEventId
ephemeral
type
data
state
statemcLastEventId id
event
liveTitle _title
liveTitle
liveTitle
sessionEvents _sdkSession type data
i sessionEventslength i i
eventTitle sessionEventsi
eventTitle
eventTitle
customTitle _chatSessionMetadataStoresessionId
customTitle
customTitle
event sessionEvents
eventtype
content eventdata eventdata eventdata
eventdatacontent
content
sanitizedContent content
sanitizedContentlength
sanitizedContent
pendingTitle _pendingPrompt
pendingTitle
state McSharedState
permissionRequest PermissionRequest
requestId
token CancellationToken
PermissionRequestResult
promptId permissionRequesttoolCallId requestId
resolve
settled
cancellationListener token
kind
result PermissionRequestResult
settled
settled
statemcPendingPermissionRequestspromptId
cancellationListener
result
statemcPendingPermissionRequestspromptId resolve complete
state McSharedState
requestId
toolCallId
token CancellationToken
UserInputResponse
resolve
settled
result UserInputResponse
settled
settled
statependingRequest
cancellationListener
result
pendingRequest McPendingUserInputRequest
requestId
toolCallId
resolve complete
cancellationListener token
statependingRequest
state _mcState
state statemcSessionId
completedCommandIds statemcCompletedCommandIds
shouldSendKeepAlive
statemcEventBufferlength
completedCommandIdslength
Date statemcLastSubmitAttemptTimeMs
statemcEventBufferlength completedCommandIdslength shouldSendKeepAlive
statemcLastSubmitAttemptTimeMs Date
events statemcEventBuffer
eventTypes eventse etype
logService
success _missionControlApiClientstatemcSessionId events completedCommandIds
success
statemcEventBufferlength
statemcEventBufferevents
statemcCompletedCommandIdscompletedCommandIds
logService
err
statemcCompletedCommandIdscompletedCommandIds
logService
state _mcState
state
sessionId sessionId
logService logService
missionControlApiClient _missionControlApiClient
statemcPollInterval
currentState mcStateBySessionIdsessionId
currentState currentStatemcSessionId
CopilotCLISessionsessionId currentState missionControlApiClient logServiceerr
logService
logService
state _mcState
statemcPollInterval
statemcPollInterval
statemcPollInterval
sessionId state McSharedState missionControlApiClient MissionControlApiClient logService msg msg
commands missionControlApiClientstatemcSessionId
pendingCommandIds commandscmd cmdid
processedId statemcProcessedCommandIds
pendingCommandIdsprocessedId
statemcProcessedCommandIdsprocessedId
cmd commands
cmdstate statemcProcessedCommandIdscmdid
statemcProcessedCommandIdscmdid
logService
mode cmdcontent
mode
statemcMode mode
statemcCompletedCommandIdscmdid
cmdtype
pendingRequest statemcPendingPermissionRequests
pendingRequest kind
statemcPendingPermissionRequests
pendingRequest state
pendingRequest
state
statemcSdkSession
responsePayload McAskUserResponsePayload
trimmedContent cmdcontent
trimmedContent
parsed trimmedContent
parsed parsed
responsePayload parsed McAskUserResponsePayload
error
logService
pendingRequest state responsePayload
pendingRequest
logService
response responsePayload trimmedContent
response
logService
pendingRequestresponse
responseData CopilotCLISessioncmd logService
promptId responseDatapromptId
promptId
logService
pendingRequest statemcPendingPermissionRequestspromptId
pendingRequest
logService
pendingRequestresponseDataapproved kind kind
vsCodeApi
statecmdid
sessionId
prompt cmdcontent
attachments
source
vsCodeApicommands
resource statemcSessionResource
prompt cmdcontent
err
sessionId
statecmdid
statemcCompletedCommandIdscmdid
logService
cmdtype cmdtype
statemcCompletedCommandIdscmdid
cmd McCommand logService msg
parsed cmdcontent
parsed parsed
parsed
error
logService
content
_sdkSession content
content
_sdkSession
messageId
content
_sdkSession
_lastResponseModelId
userPrompt modelId attachments Attachment startTimeMs
markdownContent userPrompt modelId attachments startTimeMs
_requestLogger
type LoggedRequestKindMarkdownContentRequest
debugName
startTimeMs
icon ThemeIcon
markdownContent
isConversationRequest
userPrompt assistantResponse modelId attachments Attachment startTimeMs status errorMessage
markdownContent userPrompt assistantResponse modelId attachments startTimeMs status errorMessage
_requestLogger
type LoggedRequestKindMarkdownContentRequest
debugName
startTimeMs
icon ThemeIcon
markdownContent
isConversationRequest
attachments Attachment
lines
attachment attachments
attachmenttype
lines
lines
lines
lines
lines
lines
lines
lines
lines
lines
lines
lines
lines
lines
userPrompt modelId attachments Attachment startTimeMs
result
result
result
result
result
result
result
result
result
result
result
result
result
result
resultuserPrompt
result
result
result
result
resultattachments
result
result
result
permissionRequest PermissionRequest response
result
result
result
result
result
result
result
result
result
result
permissionRequestkind
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
result
resultresponse
result
result
userPrompt assistantResponse modelId attachments Attachment startTimeMs status errorMessage
result
result
result
result
result
result
result
result
result
result
result
result
result
errorMessage
result
result
result
result
result
resultuserPrompt
result
result
result
result
resultattachments
result
result
result
result
resultassistantResponse
result
result
event ToolExecutionStartEvent
syntheticToolSpans Map ISpanHandle
rootTraceContext TraceContext
toolCall eventdata ToolCall
toolCallmcpServerName
parentToolCallId eventdataparentToolCallId
parentContext parentToolCallId syntheticToolSpansparentToolCallId rootTraceContext
toolSpan _otelService
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr sessionId
GenAiAttr toolCalltoolName
GenAiAttr toolCalltoolCallId
CopilotChatAttr sessionId
CopilotChatAttr sessionId
parentTraceContext parentContext
toolCallarguments
toolSpanGenAiAttr
toolCallarguments toolCallarguments toolCallarguments
_otelServiceconfigmaxAttributeSizeChars
err
logService
syntheticToolSpanstoolCalltoolCallId toolSpan
event ToolExecutionCompleteEvent
syntheticToolSpans Map ISpanHandle
toolSpan syntheticToolSpanseventdatatoolCallId
toolSpan
syntheticToolSpanseventdatatoolCallId
eventdatasuccess
content eventdataresultcontent
content
toolSpanGenAiAttr
content content content
_otelServiceconfigmaxAttributeSizeChars
err
logService
toolSpanSpanStatusCode
errorMessage eventdataerror
toolSpanGenAiAttr _otelServiceconfigmaxAttributeSizeChars
toolSpanSpanStatusCode errorMessage
toolSpan
turns IModelTurnUsage responseText fallbackModelId rootTraceContext TraceContext
turnslength
responseText
responseText fallbackModelId rootTraceContext
responseTurnIndex
i turnslength i i
turnsiparentToolCallId
responseTurnIndex i
i i turnslength i
turnsi i responseTurnIndex responseText fallbackModelId rootTraceContext
turn IModelTurnUsage responseText fallbackModelId rootTraceContext TraceContext
model turnmodel fallbackModelId
chatSpan _otelServicemodel
kind SpanKind
attributes
GenAiAttr GenAiOperationName
GenAiAttr GenAiProviderName
GenAiAttr sessionId
CopilotChatAttr sessionId
CopilotChatAttr sessionId
model GenAiAttr model
turninputTokens GenAiAttr turninputTokens
turnoutputTokens GenAiAttr turnoutputTokens
turncacheReadTokens GenAiAttr turncacheReadTokens
turncopilotUsageNanoAiu CopilotChatAttr turncopilotUsageNanoAiu
responseText GenAiAttr role parts type content responseText _otelServiceconfigmaxAttributeSizeChars
parentTraceContext rootTraceContext
chatSpan
toolCallId toolName args eventData success error code message result content
argsStr args args args args
resultStr eventDataresultcontent
errorStr eventDataerror
markdownContent
argsStr
eventDatasuccess resultStr errorStr
_requestLogger
type LoggedRequestKindMarkdownContentRequest
debugName
startTimeMs Date
icon Codicontools
markdownContent
isConversationRequest
event ToolExecutionCompleteEvent
toolCall ToolCall
toolStartTimes Map
sessionResource vscodeUri
toolCallId success error eventdata
eventToolName eventdata eventdatatoolName eventdatatoolName
toolName toolCalltoolName eventToolName
startTime toolStartTimestoolCallId
toolStartTimestoolCallId
invocationTimeMs startTime Date startTime
result
success
result
errorcode errorcode errorcode
result
result
toolSourceKind toolCallmcpServerName
_telemetryService
result
chatSessionId sessionResource
toolId toolName
toolExtensionId
toolSourceKind
invocationTimeMs invocationTimeMs
result
result result
content result content
text content content content
parsed text
parsed parsed parsed
url parsed url url
url url
url
urlMatch text
urlMatch
cleaned urlMatch
cleaned
cleaned
value
parsed value
parsedprotocol parsedprotocol
currentTokens
systemTokens
conversationTokens
toolDefinitionsTokens
tokenLimit
chatassistantusagequotaSnapshotsentitlementRequestsresetDateDateresetDateassistantusageresetDateDate… truncated $textlength maxLen more chars`