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 { DeferredPromise, 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
getTelemetryChatSessionId
AgentSession IAgent
AgentHostClientType
createUnknownAgentHostClientTelemetryContext
SessionInputRequestKind
ActionType
buildDefaultChatUri buildSubagentChatUri ChatInputQuestionKind MessageKind ResponsePartKind SessionStatus ToolCallCancellationReason ToolCallConfirmationReason ToolCallContributorKind
IAgentHostCheckpointService
IAgentHostChatContributions
IAgentHostTerminalManager
AgentHostLocalTurns IAgentHostLocalTurns
AgentHostLocalCommands IAgentHostLocalCommands
AgentHostChatContributions
registerBuiltInChatContributions
IAgentHostProviderService
createTestAgentHostProviderService
AgentHostSessionTitleController IAgentHostSessionTitleController
AgentHostTelemetryService
AgentConfigurationService IAgentConfigurationService
IAgentHostChangesetService
IAgentHostGitStateService
IAgentHostCustomizationEnablementService
AgentSideEffects
AgentHostStateManager IAgentHostStateManager
AgentHostToolCallTracker IAgentHostToolCallTracker
AgentHostTurnTracker IAgentHostTurnTracker
AgentHostTelemetryReporter IAgentHostTelemetryReporter
IAgentHostWorktreeIsolation
createNoopGitStateService createNullSessionDataService
createNoopWorktreeIsolation
AgentHostClientConnectionService IAgentHostClientConnectionService
ISessionDataService
MockAgent
TestAgentHostTerminalManager
_serviceBrand
session
session
session
session
session
_serviceBrand
telemetryLevel TelemetryLevel
sessionId
machineId
sqmId
devDeviceId
firstSessionDate
sendErrorTelemetry
events eventName data
eventName data
events eventName data
disposables
stateManager AgentHostStateManager
agent MockAgent
sideEffects AgentSideEffects
telemetry CapturingTelemetryService
workingDirectoryGate DeferredPromise
checkpointGate DeferredPromise
sessionUri AgentSession
sessionKey sessionUri
defaultChatUri sessionUri
stateManager
resource sessionKey
provider
title
status SessionStatusIdle
createdAt
modifiedAt
stateManagersessionKey type ActionTypeSessionReady
turnId modelId
action ChatAction
type ActionTypeChatTurnStarted
turnId
startedAt
message text origin kind MessageKindUser modelId model id modelId
stateManagerdefaultChatUri action clientId clientSeq
sideEffectsdefaultChatUri action
action ChatAction
agent kind resource defaultChatUri action
turnId
type ActionTypeChatResponsePart turnId part kind ResponsePartKindMarkdown id content
turnId content
type ActionTypeChatDelta turnId partId content
eventName data Record
telemetryevents
e eeventName
e
data edata Record
eventName eeventName
data
data
quietTimeMs dataquietTimeMs dataquietTimeMs
turnElapsedMs dataturnElapsedMs dataturnElapsedMs
eventName data Record
telemetryevents
e eeventName
e
data edata Record
eventName eeventName
data
data
totalTimeMs datatotalTimeMs datatotalTimeMs
timeAfterHangMs datatimeAfterHangMs datatimeAfterHangMs
agent
disposables agent
stateManager disposables
agentList agent
telemetry
logService
configService disposables stateManager logService
telemetryService disposables telemetry
sessionDataService
customizationEnablementService onDidChange EventNone IAgentHostCustomizationEnablementService
workingDirectoryGate
checkpointGate
checkpointService IAgentHostCheckpointService
checkpointGatep
clientConnections disposables
disposablesclientConnections
clientId clientId
clientId clientId
sharedLocalTurns sessionDataService logService
services
IAgentHostLocalTurns sharedLocalTurns
ILogService logService
IAgentConfigurationService configService
IAgentHostChangesetService
IAgentHostCheckpointService checkpointService
IAgentHostGitStateService
IAgentHostStateManager stateManager
ITelemetryService telemetryService
IAgentHostTerminalManager disposables
ISessionDataService sessionDataService
IAgentHostWorktreeIsolation
IAgentHostClientConnectionService clientConnections
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
workingDirectoryGatep
disposablessideEffectsagent
disposables
assert
eventName
data
provider
agentSessionId
chatSessionId defaultChatUri
isSubagentSession
turnId
hangReason
isExpected
hadAnyProgress
lastActivityKind
currentStage
providerDiagnosticState
initiatorClientConnectionState
blockedOn
toolId
toolSourceKind
inFlightToolCallCount
quietTimeMs
turnElapsedMs
model
modelSelectionKind
permissionLevel
asserte
hangReason edatahangReason
isExpected edataisExpected
hadAnyProgress edatahadAnyProgress
lastActivityKind edatalastActivityKind
hangReason
isExpected
hadAnyProgress
lastActivityKind
i i i
type ActionTypeChatTurnComplete turnId duration
assert hangs recoveries hangs recoveries
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
asserte
hangReason edatahangReason
isExpected edataisExpected
blockedOn edatablockedOn
toolId edatatoolId
toolSourceKind edatatoolSourceKind
inFlightToolCallCount edatainFlightToolCallCount
hangReason
isExpected
blockedOn SessionInputRequestKindToolConfirmation
toolId
toolSourceKind
inFlightToolCallCount
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
type ActionTypeChatToolCallComplete turnId toolCallId result success pastTenseMessage
asserte
hangReason edatahangReason
isExpected edataisExpected
toolId edatatoolId
toolSourceKind edatatoolSourceKind
inFlightToolCallCount edatainFlightToolCallCount
hangReason isExpected toolId toolSourceKind inFlightToolCallCount
hangReason isExpected toolId toolSourceKind inFlightToolCallCount
asserte edatahangReason
type ActionTypeChatTurnComplete turnId duration
assert
eventName
data
provider
agentSessionId
chatSessionId defaultChatUri
isSubagentSession
turnId
hangReason
result
hangReportCount
totalTimeMs
timeAfterHangMs
type ActionTypeChatTurnComplete turnId duration
assert hangs recoveries hangs recoveries
tracker disposables
telemetry
disposables
cases
session AgentSession stage
session AgentSession stage
session AgentSession stage
session AgentSession stage
session AgentSession stage
item cases
trackeragent itemsession
trackeritemsession itemstage
item cases
trackeritemsession
assert
stages caseslengthe edatacurrentStage
recoveries e
result edataresult
hangReason edatahangReason
hangReportCount edatahangReportCount
stages casesitem itemstage
recoveries cases
result
hangReason
hangReportCount
clientConnections disposables
disposablesclientConnections
clientId clientId
clientId clientId
diagnosticAgent disposables
diagnosticAgent
state
providerCallState
providerTurnStarted
providerSessionState
tracker disposables
telemetry
clientConnections
session AgentSession
tracker
diagnosticAgent
session
AgentHostClientTypeAgentsWindow
trackersession
assertdata
provider
agentSessionId
chatSessionId session
isSubagentSession
turnId
hangReason
isExpected
hadAnyProgress
lastActivityKind
currentStage
providerDiagnosticState
providerCallState
providerTurnStarted
providerSessionState
initiatorClientType
initiatorClientConnectionState
blockedOn
toolId
toolSourceKind
inFlightToolCallCount
quietTimeMs
turnElapsedMs
model
modelSelectionKind
permissionLevel
diagnosticAgent disposables
diagnosticAgent
tracker disposables
telemetry
disposables
session AgentSession
trackerdiagnosticAgent session
trackersession
assert
providerDiagnosticState dataproviderDiagnosticState
hangReason datahangReason
providerDiagnosticState
hangReason
workingDirectoryGate
workingDirectoryGate
modelGate
agent modelGatep
modelGate
checkpointGate
checkpointGate
asserte
turnId edataturnId
currentStage edatacurrentStage
turnId currentStage
turnId currentStage
turnId currentStage
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
agent
kind
chat defaultChatUri
toolCallId
agentName
agentDisplayName
agentDescription
taskPrompt
subagentChat sessionKey
firstTurnId e edataisSubagentSessiondataturnId
firstTurnId
assert
agent
kind
resource subagentChat
action type ActionTypeChatTurnComplete turnId firstTurnId duration
agent
kind
chat defaultChatUri
toolCallId
agentName
agentDisplayName
agentDescription
taskPrompt
assert
e edataisSubagentSession
e hangReason edatahangReason currentStage edatacurrentStage
hangReason currentStage
hangReason currentStage
truncate ChatAction type ActionTypeChatTruncated
stateManagerdefaultChatUri truncate clientId clientSeq
sideEffectsdefaultChatUri truncate
assert hangs recoveries hangs recoveries
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
confirmed ChatAction
type ActionTypeChatToolCallConfirmed
turnId
toolCallId
approved
confirmed ToolCallConfirmationReasonUserAction
stateManagerdefaultChatUri confirmed clientId clientSeq
sideEffectsdefaultChatUri confirmed
type ActionTypeChatToolCallComplete turnId toolCallId result success pastTenseMessage
asserte hangReason edatahangReason isExpected edataisExpected
hangReason isExpected
hangReason isExpected
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
contributor kind ToolCallContributorKindClient clientId
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
asserte
hangReason edatahangReason
isExpected edataisExpected
blockedOn edatablockedOn
toolId edatatoolId
toolSourceKind edatatoolSourceKind
inFlightToolCallCount edatainFlightToolCallCount
hangReason
isExpected
blockedOn
toolId
toolSourceKind
inFlightToolCallCount
type ActionTypeChatToolCallStart turnId toolCallId toolName displayName
type ActionTypeChatToolCallStart turnId toolCallId toolName displayName
asserte
toolId edatatoolId
inFlightToolCallCount edatainFlightToolCallCount
toolId inFlightToolCallCount
type ActionTypeChatToolCallStart turnId toolCallId toolName displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
contributor kind ToolCallContributorKind customizationId
asserte
toolId edatatoolId
toolSourceKind edatatoolSourceKind
toolId toolSourceKind
type ActionTypeChatToolCallStart turnId toolCallId toolName displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
type ActionTypeChatToolCallStart turnId toolCallId toolName displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
asserte
hangReason edatahangReason
toolId edatatoolId
inFlightToolCallCount edatainFlightToolCallCount
hangReason
toolId
inFlightToolCallCount
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmed ToolCallConfirmationReasonNotNeeded
type ActionTypeChatToolCallComplete
turnId
toolCallId
result success pastTenseMessage
requiresResultConfirmation
asserte
hangReason edatahangReason
blockedOn edatablockedOn
toolId edatatoolId
toolSourceKind edatatoolSourceKind
inFlightToolCallCount edatainFlightToolCallCount
hangReason
blockedOn SessionInputRequestKindToolConfirmation
toolId
toolSourceKind
inFlightToolCallCount
type ActionTypeChatInputRequested
request
id
message
questions id kind ChatInputQuestionKindText message
asserte
hangReason edatahangReason
blockedOn edatablockedOn
toolId edatatoolId
toolSourceKind edatatoolSourceKind
inFlightToolCallCount edatainFlightToolCallCount
hangReason
blockedOn SessionInputRequestKindChatInput
toolId
toolSourceKind
inFlightToolCallCount
type ActionTypeChatToolCallStart
turnId
toolCallId
toolName
displayName
type ActionTypeChatToolCallReady
turnId
toolCallId
invocationMessage
confirmationTitle
denied ChatAction
type ActionTypeChatToolCallConfirmed
turnId
toolCallId
approved
reason ToolCallCancellationReasonDenied
stateManagerdefaultChatUri denied clientId clientSeq
sideEffectsdefaultChatUri denied
asserte
hangReason edatahangReason
isExpected edataisExpected
inFlightToolCallCount edatainFlightToolCallCount
hangReason
isExpected
inFlightToolCallCount
type ActionTypeChatTurnCancelled turnId duration
sideEffectsdefaultChatUri
assert hangs recoveries hangs recoveries