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 assert from 'assert';
import { timeout } from '../../../../base/common/async.js';
import { Event } from '../../../../base/common/event.js';
import { DisposableStore, toDisposable } from '../../../../base/common/lifecycle.js';
import { observableValue } from '../../../../base/common/observable.js';
import { URI } from '../../../../base/common/uri.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../base/test/common/utils.js';
import { runWithFakedTimers }
InstantiationService
ServiceCollection
ILogService NullLogService
ITelemetryService TelemetryLevel
TelemetryTrustedValue
AgentSession IAgent
AgentHostClientType
AgentHostClientConnectionKind AgentHostLaunchKind AgentHostTransportKind
getTelemetryChatSessionId
SessionInputRequestKind
ActionType
buildDefaultChatUri MessageKind SessionStatus ToolCallConfirmationReason ToolCallContributorKind ToolCallStatus ToolResultContentType
IAgentHostCheckpointService
IAgentHostChatContributions
IAgentHostTerminalManager
AgentHostLocalTurns IAgentHostLocalTurns
AgentHostLocalCommands IAgentHostLocalCommands
AgentHostChatContributions
registerBuiltInChatContributions
IAgentHostProviderService
createTestAgentHostProviderService
AgentHostSessionTitleController IAgentHostSessionTitleController
AgentHostTelemetryReporter IAgentHostTelemetryReporter
AgentHostTelemetryService
AgentHostToolCallTracker IAgentHostToolCallTracker
AgentHostTurnTracker IAgentHostTurnTracker
AgentHostClientConnectionService IAgentHostClientConnectionService
AgentConfigurationService IAgentConfigurationService
IAgentHostChangesetService
IAgentHostGitStateService
AgentSideEffects
IAgentHostCustomizationEnablementService
AgentHostStateManager IAgentHostStateManager
IAgentHostWorktreeIsolation
createNoopGitStateService createNullSessionDataService
createNoopWorktreeIsolation
ISessionDataService
MockAgent
TestAgentHostTerminalManager
_serviceBrand
session
session
session
session
session
_serviceBrand
telemetryLevel TelemetryLevel
sessionId
machineId
sqmId
devDeviceId
firstSessionDate
sendErrorTelemetry
events eventName data level
eventName data
events eventName data level
eventName data
events eventName data level
disposables
stateManager AgentHostStateManager
agent MockAgent
sideEffects AgentSideEffects
telemetry CapturingTelemetryService
sessionUri AgentSession
sessionKey sessionUri
defaultChatUri sessionUri
stateManager
resource sessionKey
provider
title
status SessionStatusIdle
createdAt
modifiedAt
stateManagersessionKey type ActionTypeSessionReady
turnId text modelId clientContext IAgentHostClientTelemetryContext
action ChatAction
type ActionTypeChatTurnStarted
turnId
startedAt
message text origin kind MessageKindUser model modelId id modelId
stateManagerdefaultChatUri action clientId clientSeq
sideEffectsdefaultChatUri action clientContext
action ChatAction
agent kind resource defaultChatUri action
turnId toolCallId toolName contributor ToolCallContributor
type ActionTypeChatToolCallStart turnId toolCallId toolName displayName toolName contributor
turnId toolCallId result ToolCallResult
type ActionTypeChatToolCallComplete turnId toolCallId result
turnId
type ActionTypeChatTurnComplete turnId duration
eventName data Record
telemetryevents
e eeventName
e
data edata Record
eventName eeventName
data
data
invocationTimeMs datainvocationTimeMs
datainvocationTimeMs datainvocationTimeMs
model datamodel trusted value datamodelvalue datamodel
eventName data Record
telemetryevents
e eeventName
e
data edata Record
eventName eeventName
data
data
invocationTimeMs datainvocationTimeMs
datainvocationTimeMs datainvocationTimeMs
model datamodel trusted value datamodelvalue datamodel
eventName data Record
telemetryevents
e eeventName
e
data edata Record
eventName eeventName
data data stalledTimeMs datastalledTimeMs datastalledTimeMs
eventName data Record
telemetryevents
e eeventName
e
data edata Record
eventName eeventName
data
data
totalTimeMs datatotalTimeMs datatotalTimeMs
timeAfterStallMs datatimeAfterStallMs datatimeAfterStallMs
agent
disposables agent
stateManager disposables
agentList agent
telemetry
logService
configService disposables stateManager logService
telemetryService disposables telemetry
sessionDataService
customizationEnablementService IAgentHostCustomizationEnablementService
_serviceBrand
onDidChange EventNone
kind
kind enablement enabled workingDirectory kind
kind enablement enabled workingDirectory kind
kind enablement enabled workingDirectory kind
kind enablement enabled workingDirectory kind
sharedLocalTurns sessionDataService logService
services
IAgentHostLocalTurns sharedLocalTurns
ILogService logService
IAgentConfigurationService configService
IAgentHostChangesetService
IAgentHostCheckpointService
IAgentHostGitStateService
IAgentHostStateManager stateManager
ITelemetryService telemetryService
IAgentHostTerminalManager disposables
ISessionDataService sessionDataService
IAgentHostWorktreeIsolation
IAgentHostClientConnectionService disposables
instantiationService disposables services
chatContributions disposables logService instantiationService
servicesIAgentHostChatContributions chatContributions
servicesIAgentHostSessionTitleController disposables stateManager sessionDataService logService
servicesIAgentHostProviderService agent
telemetryReporter telemetryService
servicesIAgentHostTelemetryReporter telemetryReporter
turnTracker disposablesinstantiationServiceAgentHostTurnTracker
servicesIAgentHostTurnTracker turnTracker
servicesIAgentHostToolCallTracker disposablesinstantiationServiceAgentHostToolCallTracker
localCommands disposablesinstantiationServiceAgentHostLocalCommands
servicesIAgentHostLocalCommands localCommands
disposableschatContributions
sideEffects disposablesinstantiationServiceAgentSideEffects stateManager customizationEnablementService
agent
agents agentList
sessionDataService
localTurns sharedLocalTurns
disposablessideEffectsagent
disposables
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
success pastTenseMessage
assert
eventName
data
result
chatSessionId sessionKey
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
assert
eventName
data
result
agentSessionId
chatSessionId defaultChatUri
isSubagentSession
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
errorCode
msg
clientContext IAgentHostClientTelemetryContext
clientType AgentHostClientTypeEditorWindow
connectionKind AgentHostClientConnectionKindRemoteExtensionHost
transportKind AgentHostTransportKindMessagePort
hostLaunchKind AgentHostLaunchKindVSCodeMainProcess
machineId
devDeviceId
clientContext
success pastTenseMessage
event
assert
initiatorClientType eventdatainitiatorClientType
initiatorConnectionKind eventdatainitiatorConnectionKind
initiatorTransportKind eventdatainitiatorTransportKind
hostLaunchKind eventdatahostLaunchKind
initiatorMachineId eventdatainitiatorMachineId
initiatorDevDeviceId eventdatainitiatorDevDeviceId
initiatorClientType
initiatorConnectionKind
initiatorTransportKind
hostLaunchKind
initiatorMachineId
initiatorDevDeviceId
kind ToolCallContributorKind customizationId
success pastTenseMessage error message code
assert
eventName
data
result
chatSessionId sessionKey
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
assertdata
result
agentSessionId
chatSessionId defaultChatUri
isSubagentSession
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
errorCode
msg
kind ToolCallContributorKindClient clientId
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
success pastTenseMessage
assert
eventName
data
result
chatSessionId sessionKey
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
agent
provider id name supportsVision
provider id name supportsVision
type ActionTypeChatUsage turnId usage model
success pastTenseMessage
assertdata
result
chatSessionId sessionKey
toolId
toolExtensionId
toolSourceKind
toolCallId
invocationTimeMs
provider
resultSizeInCharacters
turnId
model trusted value
agent provider id name supportsVision
type ActionTypeChatUsage turnId usage model
success pastTenseMessage
assertdatamodel trusted value
agent provider id name supportsVision
success pastTenseMessage
assertlength
type ActionTypeChatUsage turnId usage model
assertdatamodel trusted value
success
pastTenseMessage
content type ToolResultContentTypeText text
assertdataresultSizeInCharacters
agent
kind
chat defaultChatUri
state
status ToolCallStatusPendingConfirmation
toolCallId
toolName
displayName
contributor kind ToolCallContributorKind customizationId
invocationMessage
toolInput
agent
kind
chat defaultChatUri
state
status ToolCallStatusPendingConfirmation
toolCallId
toolName
displayName
contributor kind ToolCallContributorKindClient clientId
invocationMessage
toolInput
success pastTenseMessage
success pastTenseMessage
assertevent eventdatatoolSourceKind
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
confirmed ChatAction
type ActionTypeChatToolCallConfirmed
turnId
toolCallId
approved
confirmed ToolCallConfirmationReasonUserAction
stateManagerdefaultChatUri confirmed clientId clientSeq
sideEffectsdefaultChatUri confirmed
success pastTenseMessage
event telemetryeventsevent eventeventName
invocationTimeMs eventdata invocationTimeMs invocationTimeMs
assert
isMeasured invocationTimeMs
excludesConfirmationDelay invocationTimeMs invocationTimeMs
isMeasured
excludesConfirmationDelay
success pastTenseMessage error message code
assert
legacy data
agentHost data
agentHostLevel telemetryeventsevent eventeventName level
legacy
result
chatSessionId sessionKey
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
agentHost
result
agentSessionId
chatSessionId defaultChatUri
isSubagentSession
toolId
toolExtensionId
toolSourceKind
toolCallId
provider
invocationTimeMs
resultSizeInCharacters
turnId
model
errorCode
msg
agentHostLevel
success pastTenseMessage
success pastTenseMessage
assert
legacyEvents length
agentHostEvents length
legacyEvents
agentHostEvents
type ActionTypeChatTurnCancelled turnId duration
success pastTenseMessage
assertlength
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
assert
eventName
data
provider
agentSessionId
isSubagentSession
blockerKind SessionInputRequestKindToolConfirmation
toolId
toolSourceKind
stalledTimeMs
kind ToolCallContributorKindClient clientId
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
type ActionTypeChatToolCallConfirmed
turnId
toolCallId
approved
confirmed ToolCallConfirmationReasonUserAction
asserte edatablockerKind SessionInputRequestKindToolClientExecution
kind ToolCallContributorKindClient clientId
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
success pastTenseMessage
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
type ActionTypeChatTurnCancelled turnId duration
assert
assert
kind ToolCallContributorKindClient clientId
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
success pastTenseMessage
assert
eventName
data
provider
agentSessionId
isSubagentSession
blockerKind SessionInputRequestKindToolClientExecution
toolId
toolSourceKind
result
totalTimeMs
timeAfterStallMs