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 { RunOnceScheduler } from '../../../../../base/common/async.js';
import { VSBuffer } from '../../../../../base/common/buffer.js';
import { CancellationToken } from '../../../../../base/common/cancellation.js';
import { Disposable, DisposableStore, MutableDisposable } from '../../../../../base/common/lifecycle.js';
import { Schemas } from '../../../../../base/common/network.js';
import { dirname, joinPath } from '../../../../../base/common/resources.js';
import { URI } from '../../../../../base/common/uri.js'
localize
IConfigurationService
IFileService
ILogService
IAgentHostService
agentHostAuthority
isCustomizationEnabled
IRemoteAgentHostService
buildDefaultChatUri CustomizationType readUsageInfoMeta StateComponents
IWorkbenchContribution
IWorkbenchEnvironmentService
IPathService
ChatDebugHookResult ChatDebugLogLevel IChatDebugCustomizationLogEntry IChatDebugEvent IChatDebugFileEntry IChatDebugLogProvider IChatDebugMessageSection IChatDebugModelTurnEvent IChatDebugResolvedEventContent IChatDebugService
IAgentHostCustomizationService
AgentHostAgentDebugLogEnabledSettingId AgentHostAgentDebugLogMaxEventsSettingId
buildLocalSessionStateUri getCopilotCliSessionRawId resolveEventsUri
AgentHostCustomizationRecorder AgentHostUsageRecorder buildAgentHostCustomizationsUri buildAgentHostUsageUri readAgentHostCustomizationsSnapshot readAgentHostUsageRecords
type
id
parentId
agentId
timestamp
data Record
_resolved
_discovering
_hasFetchedOnce
_liveRefresh
_watchedSessionKey
_liveRead key consumedBytes pendingBytes VSBuffer records IAgentHostEventRecord
_usageRead key size records IAgentHostUsageRecord
_chatDebugService IChatDebugService
_fileService IFileService
_pathService IPathService
_remoteAgentHostService IRemoteAgentHostService
_agentHostService IAgentHostService
_configurationService IConfigurationService
_logService ILogService
_environmentService IWorkbenchEnvironmentService
_customizationService IAgentHostCustomizationService
provider IChatDebugLogProvider
sessionResource token sessionResource token
eventId _resolvedeventId
_chatDebugServiceprovider
_environmentServiceuserRoamingDataHome
_configurationServiceAgentHostAgentDebugLogEnabledSettingId
_fileService
_logService
_agentHostService
_remoteAgentHostService
_environmentServiceuserRoamingDataHome
_configurationServiceAgentHostAgentDebugLogEnabledSettingId
_fileService
_logService
_agentHostService
_remoteAgentHostService
_chatDebugServicesessionResource
sessionResource _watchedSessionKey
_liveRefresh
_watchedSessionKey
_liveRead
_usageRead
_chatDebugServicetoken token
_configurationServicee
eAgentHostAgentDebugLogEnabledSettingId _hasFetchedOnce
token CancellationToken uri title
_hasFetchedOnce
_configurationServiceAgentHostAgentDebugLogEnabledSettingId
token
err
_logService
_discovering _configurationServiceAgentHostAgentDebugLogEnabledSettingId
_discovering
sessions CancellationTokenNone
sessionslength
_chatDebugServicesessions
err
_logService
_discovering
sessionResource
userHome _pathService preferLocal
result
sessionResource
userHome
authority _remoteAgentHostServiceconnectionsc caddress authority
resultkind resultresource
sessionResource eventsUri
key sessionResource
_watchedSessionKey key
eventsUrischeme Schemasfile
_liveRefresh
_watchedSessionKey
_watchedSessionKey key
store
scheduler store
_chatDebugServicesessionResource
watcher store_fileServiceeventsUri recursive excludes
storewatchere
affects eeventsUri
affects
scheduler
liveSub sessionResource
liveSub
storeliveSub scheduler
store_customizationService scheduler
_liveRefreshvalue store
sessionResource
sessionResourcescheme
rawId sessionResource
rawId
backendSession scheme path
chatUri backendSession
_agentHostServiceStateComponentsChat chatUri
sessionResource ISessionUsageTotals
chat sessionResourcevalue
chat chat
chat
sessionResource IAgentHostUsageRecord
rawId sessionResource
rawId
uri _environmentServiceuserRoamingDataHome rawId
key uri
size
stat _fileServiceuri
size statsize
_usageRead
_usageReadkey key _usageReadsize size
_usageReadrecordslength _usageReadrecords
records _fileService uri
_usageRead key size records
recordslength records
sessionResource Customization
rawId sessionResource
rawId
uri _environmentServiceuserRoamingDataHome rawId
snapshot _fileService uri
snapshot snapshotlength snapshot
sessionResource token CancellationToken IChatDebugEvent
_configurationServiceAgentHostAgentDebugLogEnabledSettingId
eventsUri sessionResource
eventsUri
sessionResource eventsUri
records eventsUri token
records
tokenisCancellationRequested
liveUsageTotals sessionResource
usageRecords sessionResource
tokenisCancellationRequested
customizations _customizationServicesessionResource
customizationslength
customizations sessionResource customizations
tokenisCancellationRequested
events resolved records sessionResource liveUsageTotals usageRecords customizations
id detail resolved
_resolvedid detail
_resolvedsize
first _resolvedvalue
first
_resolvedfirst
events
configured _configurationServiceAgentHostAgentDebugLogMaxEventsSettingId
configured Numberconfigured configured
Mathconfigured
records IAgentHostEventRecord
max
recordslength max
records recordslength max
eventsUri token CancellationToken IAgentHostEventRecord
key eventsUri
size
stat _fileServiceeventsUri
size statsize
_liveRead
tokenisCancellationRequested
cache _liveReadkey key _liveRead
cache size cacheconsumedBytes
size cacheconsumedBytes
cacherecords
content _fileServiceeventsUri position cacheconsumedBytes length size cacheconsumedBytes
tokenisCancellationRequested
combined cachependingBytesbyteLength VSBuffercachependingBytes contentvalue contentvalue
lastNewline combined
lastNewline
combined lastNewline cacherecords
cachependingBytes combinedlastNewline
cachependingBytes combined
cacheconsumedBytes size
cacherecords
cacherecords
buffer VSBuffer
content _fileServiceeventsUri
buffer contentvalue
_liveRead
tokenisCancellationRequested
lastNewline buffer
records IAgentHostEventRecord
lastNewline
buffer lastNewline records
records
_liveRead
key
consumedBytes bufferbyteLength
pendingBytes lastNewline bufferlastNewline buffer
records
records
token CancellationToken uri title
userHome _pathService preferLocal
sessionStateDir userHome
stat
stat _fileServicesessionStateDir resolveMetadata
tokenisCancellationRequested
folders statchildren
child childisDirectory
a b bmtime amtime
found folders folder
eventsUri folderresource
title
head _fileServiceeventsUri length
title headvalue foldername
uri scheme path title
tokenisCancellationRequested
founds s NonNullable s s
records IAgentHostEventRecord
sessionResource
fallbackUsageTotals ISessionUsageTotals
usageRecords IAgentHostUsageRecord
customizations Customization
events IChatDebugEvent resolved Map IChatDebugResolvedEventContent
completeByToolCallId
turnStartByTurnId
hookEndByInvocationId
permissionCompleteByRequestId
subagentCompleteByToolCallId
record records
recordtype
toolCallId recorddatatoolCallId
toolCallId
completeByToolCallIdtoolCallId record
recordtype
turnId recorddataturnId
turnId
turnStartByTurnIdturnId record
recordtype
invocationId recorddatahookInvocationId
invocationId
hookEndByInvocationIdinvocationId record
recordtype
requestId recorddatarequestId
requestId
permissionCompleteByRequestIdrequestId record
recordtype
toolCallId recorddatatoolCallId
toolCallId
subagentCompleteByToolCallIdtoolCallId record
events IChatDebugEvent
resolved
modelTurnRefs IModelTurnRef
rootEventId
rootCreated Date
currentUserMessageByAgent
currentAssistantMessageByAgent
toolEventByToolCallId
hasConfiguredHooks customizations
customizationsc ctype CustomizationTypeHook cenabled
record records
created recordtimestamp
agentKey recordagentId
turnParent currentAssistantMessageByAgentagentKey currentUserMessageByAgentagentKey rootEventId
recordtype
rootEventId recordid
rootCreated created
model recorddataselectedModel
effort recorddatareasoningEffort
version recorddatacopilotVersion
context recorddatacontext
repository contextrepository
branch contextbranch
parts
model
partseffort
model effort
model
version
parts version
repository
partsbranch
repository branch
repository
events
kind id recordid sessionResource created parentEventId
name
details partslength parts level ChatDebugLogLevelInfo category
content recorddatacontent
transformed recorddatatransformedContent
sections IChatDebugMessageSection
name content
transformed transformed content
sections name content transformed
message content
currentUserMessageByAgentagentKey recordid
currentAssistantMessageByAgentagentKey
events kind id recordid sessionResource created parentEventId rootEventId message sections
resolvedrecordid kind type message sections
model recorddatamodel
outputTokens recorddataoutputTokens
content recorddatacontent
reasoning recorddatareasoningText
parentToolCallId recorddataparentToolCallId
spawningTool parentToolCallId toolEventByToolCallIdparentToolCallId
parentEventId spawningTool currentUserMessageByAgentagentKey rootEventId
turnId recorddataturnId
turnStart turnId turnStartByTurnIdturnId
durationInMillis turnStart turnStarttimestamp recordtimestamp
currentAssistantMessageByAgentagentKey recordid
modelTurnRefs index eventslength id recordid turnId outputTokens
events
kind id recordid sessionResource created parentEventId
model requestName outputTokens durationInMillis
sections IChatDebugMessageSection
content
sections name content
reasoning
sections name content reasoning
resolvedrecordid kind requestName model outputTokens durationInMillis sections
toolName recorddatatoolName
toolCallId recorddatatoolCallId
complete toolCallId completeByToolCallIdtoolCallId
success complete completedatasuccess
result success success
durationInMillis complete recordtimestamp completetimestamp
fullInput recorddataarguments
fullOutput complete completedataresult
parentToolCallId recorddataparentToolCallId
parentTool parentToolCallId toolEventByToolCallIdparentToolCallId
parentEventId parentTool currentAssistantMessageByAgentagentKey currentUserMessageByAgentagentKey rootEventId
toolCallId
toolEventByToolCallIdtoolCallId recordid
events
kind id recordid sessionResource created parentEventId
toolName toolCallId result durationInMillis
input fullInput
output fullOutput
resolvedrecordid
kind toolName result durationInMillis
input fullInput
output fullOutput
message recorddatamessage
errorType recorddataerrorType
stack recorddatastack
events
kind id recordid sessionResource created parentEventId turnParent
name errorType
errorType
details message
level ChatDebugLogLevelError category
detailText stack message
resolvedrecordid kind value detailText detailText
message recorddatamessage
warningType recorddatawarningType
events
kind id recordid sessionResource created parentEventId turnParent
name warningType
warningType
details message
level ChatDebugLogLevelWarning category
message
resolvedrecordid kind value message message
previousModel recorddatapreviousModel
newModel recorddatanewModel
effort recorddatareasoningEffort
change previousModel newModel
previousModel newModel
newModel
details change effort
change effort
change
events
kind id recordid sessionResource created parentEventId turnParent
name
details level ChatDebugLogLevelInfo category
hookType recorddatahookType
invocationId recorddatahookInvocationId
end invocationId hookEndByInvocationIdinvocationId
success end enddatasuccess
isError hookType
hookType hookType hasConfiguredHooks
hookParent hookType
currentUserMessageByAgentagentKey rootEventId
turnParent
isError success
events
kind id recordid sessionResource created parentEventId hookParent
name hookType
level ChatDebugLogLevelInfo category
routineInput recorddatainput
resolvedrecordid
kind hookType
result success success ChatDebugHookResultSuccess ChatDebugHookResultError
input routineInput
input recorddatainput
errorContext inputerrorContext
recoverable inputrecoverable
events
kind id recordid sessionResource created parentEventId hookParent
name isError
errorContext
errorContext
hookType
details isError recoverable
recoverable
level isError
recoverable ChatDebugLogLevelError ChatDebugLogLevelWarning
ChatDebugLogLevelError
category
inputText recorddatainput
endError enddataerror
errorParts endError
endErrormessage endErrorsources s s
outputText end enddataoutput enddataoutput
resolvedrecordid
kind hookType
result success success ChatDebugHookResultSuccess ChatDebugHookResultError
input inputText
output outputText outputText
errorMessage errorPartslength errorParts
requestId recorddatarequestId
permissionRequest recorddatapermissionRequest
kind permissionRequestkind
intention permissionRequestintention
toolCallId permissionRequesttoolCallId
completed requestId permissionCompleteByRequestIdrequestId
resultKind completed completeddataresultkind
resultKind
parentEventId toolCallId toolEventByToolCallIdtoolCallId turnParent
events
kind id recordid sessionResource created parentEventId
name resultKind
resultKind kind
kind
details intention
level ChatDebugLogLevelWarning category
path permissionRequestpath
lines
kind
intention intention
path path
resultKind
l l l
resolvedrecordid kind value lines
toolCallId recorddatatoolCallId
agentName recorddataagentDisplayName recorddataagentName
description recorddataagentDescription
model recorddatamodel
complete toolCallId subagentCompleteByToolCallIdtoolCallId
toolCallCount complete completedatatotalToolCalls
totalTokens complete completedatatotalTokens
durationInMillis complete completedatadurationMs
parentEventId toolCallId toolEventByToolCallIdtoolCallId turnParent
events
kind id recordid sessionResource created parentEventId
agentName description status complete toolCallCount durationInMillis
lines
agentName
model model
toolCallCount toolCallCount
totalTokens totalTokens
description
l l l
resolvedrecordid kind value lines
systemTokens recorddatasystemTokens
conversationTokens recorddataconversationTokens
toolTokens recorddatatoolDefinitionsTokens
events
kind id recordid sessionResource created parentEventId turnParent
name
details systemTokens conversationTokens toolTokens
level ChatDebugLogLevelInfo category
recorddatasuccess
error recorddataerror
events
kind id recordid sessionResource created parentEventId turnParent
name
details error
level ChatDebugLogLevelError category
error
resolvedrecordid kind value error error
reason recorddatareason
events
kind id recordid sessionResource created parentEventId turnParent
name
details reason level ChatDebugLogLevelWarning category
name recorddataname
trigger recorddatatrigger
source recorddatapluginName recorddatasource
content recorddatacontent
events
kind id recordid sessionResource created parentEventId turnParent
name name
details trigger sourceBoolean
level ChatDebugLogLevelInfo category
content
resolvedrecordid kind value content content
targets IModelTurnRef totals ISessionUsageTotals
n targetslength
n
inputs totalsinputTokens totalsinputTokens n
cached totalscacheReadTokens totalscacheReadTokens n
aiu totalstotalNanoAiu n
i i n i
ref targetsi
turn eventsrefindex IChatDebugModelTurnEvent
inputTokens inputsi
cachedTokens cachedi
totalTokens inputTokens inputTokens refoutputTokens
copilotUsageNanoAiu aiui aiui
eventsrefindex turn inputTokens cachedTokens totalTokens copilotUsageNanoAiu
detail resolvedrefid
detailkind
resolvedrefid detail inputTokens cachedTokens totalTokens
usageRecords usageRecordslength modelTurnRefslength
coverage events resolved modelTurnRefs usageRecords
uncovered modelTurnRefs_ref i coveragecoveredi
uncoveredlength
totals records fallbackUsageTotals
totals
uncovered
inputTokens totalsinputTokens Math totalsinputTokens coverageassignedInput
cacheReadTokens totalscacheReadTokens Math totalscacheReadTokens coverageassignedCache
totalNanoAiu Math totalstotalNanoAiu coverageassignedAiu
modelTurnRefslength
totals records fallbackUsageTotals
totals
modelTurnRefs totals
customizations customizationslength
created rootCreated recordslength recordstimestamp
events customEvents resolved customResolved customizations sessionResource rootEventId created
eventscustomEvents
id detail customResolved
resolvedid detail
events resolved
CustomizationType
CustomizationTypeSkill CustomizationTypeHook CustomizationTypeAgent
CustomizationTypeMcpServer CustomizationTypeRule CustomizationTypePrompt
type CustomizationType
name
uri
enabled
description
customizations Customization IFlatCustomization
out IFlatCustomization
visit c Customization ChildCustomization
ctype CustomizationTypePlugin ctype CustomizationTypeDirectory
child cchildren
child
out
type ctype
name cname
uri curi
enabled ctype CustomizationTypeMcpServer
c
cenabled
description c description description
c customizations
c
out
type CustomizationType
type
CustomizationTypeSkill
CustomizationTypeHook
CustomizationTypeAgent
CustomizationTypeMcpServer
CustomizationTypeRule
CustomizationTypePrompt
c IFlatCustomization IChatDebugCustomizationLogEntry
cenabled
ctype
CustomizationTypeSkill
CustomizationTypeAgent
CustomizationTypeHook
CustomizationTypeRule
customizations Customization
sessionResource
parentEventId
created Date
events IChatDebugEvent resolved Map IChatDebugResolvedEventContent
events IChatDebugEvent
resolved
flat customizations
flatlength
events resolved
byType
c flat
list byTypectype
list
listc
byTypectype c
key sessionResource
list byTypetype
list listlength
id
loadedCount listc cenabledlength
skippedCount listlength loadedCount
events
kind id sessionResource created parentEventId
name type
details skippedCount
loadedCount skippedCount
loadedCount
level ChatDebugLogLevelInfo category
files IChatDebugFileEntry listc
uri curi
name cname
status cenabled
skipReason cenabled
resolvedid kind discoveryType type durationInMillis files
logs IChatDebugCustomizationLogEntry
c flat
category c
category
logs category name cname uri curi reason cdescription
logslength
id
counts
instructions logse ecategory ecategory length
skills logse ecategory length
agents logse ecategory length
hooks logse ecategory length
skipped logse ecategory length
events
kind id sessionResource created parentEventId
name
details countsskills countsagents countshooks countsinstructions
level ChatDebugLogLevelInfo category
resolvedid kind resolutionLogs logs durationInMillis counts
events resolved
index
id
turnId
outputTokens
covered ReadonlySet
assignedInput
assignedCache
assignedAiu
events IChatDebugEvent
resolved Map IChatDebugResolvedEventContent
modelTurnRefs IModelTurnRef
usageRecords IAgentHostUsageRecord
IPerTurnUsageCoverage
ref modelTurnRefs inputTokens cachedTokens copilotUsageNanoAiu
turn eventsrefindex IChatDebugModelTurnEvent
totalTokens inputTokens inputTokens refoutputTokens
eventsrefindex turn inputTokens cachedTokens totalTokens copilotUsageNanoAiu
detail resolvedrefid
detailkind
resolvedrefid detail inputTokens cachedTokens totalTokens
aiuByRecordIndex usageRecordslength
start start usageRecordslength
end start
end usageRecordslength usageRecordsend turnId usageRecordsstartturnId
end
maxAiu
i start i end i
maxAiu MathmaxAiu usageRecordsitotalNanoAiu
maxAiu
aiuByRecordIndexend maxAiu
start end
recordIndex
assignedInput
assignedCache
assignedAiu
covered
refIdx refIdx modelTurnRefslength refIdx
recordIndex usageRecordslength
ref modelTurnRefsrefIdx
record usageRecordsrecordIndex
refoutputTokens recordoutputTokens refoutputTokens recordoutputTokens
aiu aiuByRecordIndexrecordIndex
ref recordinputTokens recordcacheReadTokens aiu
assignedInput recordinputTokens
assignedCache recordcacheReadTokens
assignedAiu aiu
coveredrefIdx
recordIndex
covered assignedInput assignedCache assignedAiu
inputTokens
cacheReadTokens
totalNanoAiu
records IAgentHostEventRecord ISessionUsageTotals
shutdown IAgentHostEventRecord
record records
recordtype
shutdown record
shutdown
inputTokens
cacheReadTokens
perModelNanoAiu
modelMetrics shutdowndatamodelMetrics
modelMetrics modelMetrics
metric ObjectmodelMetrics Record
entry metric Record
usage entryusage Record
inputTokens usageinputTokens
cacheReadTokens usagecacheReadTokens
perModelNanoAiu entrytotalNanoAiu
totalNanoAiu shutdowndatatotalNanoAiu perModelNanoAiu
inputTokens cacheReadTokens totalNanoAiu
total n
n
base Mathtotal n
parts nbase
remainder total base n
i n remainder i remainder
partsi
parts
chat ChatState ISessionUsageTotals
totalNanoAiu
hasUsage
usage UsageInfo
usage
hasUsage
totalNanoAiu usage
turn chatturns
turnusage
chatactiveTurnusage
hasUsage totalNanoAiu
usage UsageInfo
usagecopilotUsagetotalNanoAiu
text IAgentHostEventRecord
records IAgentHostEventRecord
text records
records
text records IAgentHostEventRecord
line text
trimmed line
trimmed
parsed trimmed
parsed parsedtype parsedid
parsedtimestamp
parsedparentId parsedparentId
parseddata parseddata parseddata
recordsparsed IAgentHostEventRecord
buffer VSBuffer
bytes bufferbuffer
i byteslength i i
bytesi
i
sessionId
sessionId
text
record text
recordtype
content recorddatacontent
content
content
value
value value
value
value value value
value
value value
value Record
value value value value Record
start end
a start
b end
a b b a b a
value
value value
value
value
value
value max
value
valuelength max value max value
content
firstLine contentl ll llength
firstLinelength firstLine firstLine
err
err errmessage err