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, SequencerByKey } from '../../../base/common/async.js';
import { CancellationTokenSource } from '../../../base/common/cancellation.js';
import { structuralEquals } from '../../../base/common/equals.js';
import { Emitter, Event } from '../../../base/common/event.js';
import { Disposable, DisposableMap, DisposableStore, MutableDisposable, toDisposable } from '../../../base/common/lifecycle.js';
import { autorun } from '../../../base/common/observable.js';
import { URI
generateUuid
IGitHubService
PullRequestRef PullRequestSnapshot PullRequestSubscription
GitHubRequestError
ILogService
AgentMergeConfigKey AgentMergeConfiguration AgentMergeDisableReason AgentMergeSessionState AgentMergeTarget agentMergeDisableReasons agentMergeDisabledNotice agentMergeEnabledNotice agentMergeGateFragments agentMergeMergePullRequestDemotedNotice agentMergeRootConfigSchema defaultAgentMergeConfiguration evaluateAgentMerge readAgentMergeSessionState resolveAgentMergeConfiguration resolveMergeMethod shouldStopMergingAfterAgentChanges
buildAgentMergePrompt
IAgentHostGitStateService
IAgentHostGitService
AgentSystemNotificationKind
deriveGitHubEndpoints
SessionConfigKey
ActionType
AuthRequiredReason
getSessionRelatedPullRequestUrls isAhpChatChannel isSessionStatusArchived needsSessionGitStateRefresh parseRequiredSessionUriFromChatUri readSessionGitHubState readSessionGitState SessionLifecycle TurnState
IAgentConfigurationService
IAgentHostGitHubEndpointService
AgentHostStateManager IAgentHostStateManager
IAgentMergeTurnContext
snapshotDebounce
backstopInterval
maximumRepeatedPromptCount
maximumTotalPromptCount
maximumIndeterminateDuration
indeterminateObservationGap backstopInterval
session turnId prompt
session turnId
session kind AgentSystemNotificationKind content
session config ReadonlyRecord Record
subscription
snapshotObserver
cancellation
abortController
evaluationScheduler RunOnceScheduler
backstopScheduler RunOnceScheduler
ref PullRequestRef
didRefreshForMissingBranch
indeterminate cause since observedAt
reportedCredentialFailure
session
evaluationScheduler evaluate snapshotDebounce
backstopScheduler evaluate backstopInterval
cancellation
abortController
_runtimes
_evaluations
_evaluatingSessions
_activeTurns
_onDidReleaseHold
onDidReleaseHold Event _onDidReleaseHoldevent
_heldSessions
_monitoredSessions
_options IAgentMergeControllerOptions
_stateManager AgentHostStateManager
_configurationService IAgentConfigurationService
_gitStateService IAgentHostGitStateService
_gitService IAgentHostGitService
_gitHubService IGitHubService
_gitHubEndpointService IAgentHostGitHubEndpointService
_logService ILogService
_logService
_stateManagerevent
previous eventpreviousvalues
current eventcurrentvalues
previous current
session eventsession
session previous current
session
_stateManagerevent
eventactive
eventsession
_stateManagersession
_monitoredSessionssession
session
_gitStateServicesession
_evaluatingSessionssession
session
_gitStateServicesession session
_configurationService
session _stateManager
session
_stateManagerenvelope
envelopeactiontype ActionTypeSessionReady envelopeactiontype ActionTypeSessionIsArchivedChanged
envelopechannel
_logService
session _runtimes
session
session
_heldSessionssession
session
_logService
session
session IAgentMergeTurnContext
sessionKey session session session
context _activeTurnssessionKey
context _stateManagersessionKeyactiveTurnid contextturnId
context
session
_runtimessession
state _stateManagersession
state statestatus
stateconfigvaluesenabled
session
shouldHold session
shouldHold _heldSessionssession
shouldHold
_heldSessionssession
_heldSessionssession
_logService
_onDidReleaseHoldsession
session
session
session
session
state _stateManagersession
agentMerge stateconfigvalues
state agentMergeenabled
_runtimessession agentMergeinjectedConfiguration
_logService
_monitoredSessionssession state
session AgentSystemNotificationKindAgentMergeDisabled
agentMergeinjectedConfiguration
session agentMerge
session
statestatus
session agentMerge agentMergeDisableReasons
_runtimessession agentMergeinjectedConfiguration
_logService
agentMergeinjectedConfiguration
session agentMerge
session
statelifecycle SessionLifecycleReady
_runtimessession
_logService
session
_stateManagersession
session agentMerge
runtime _runtimessession
runtime
runtime session session
_runtimessession runtime
_monitoredSessionssession
_logService
session
_configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyEnabled
session agentMerge AgentMergeSessionState
values _configurationServicesession
injected agentMergeinjectedConfiguration
applied _optionssession values
injected Objectappliedlength
_logService
previous Record
patch Record
key value Objectapplied
previouskey injected Objectinjectedprevious key injectedpreviouskey valueskey
valueskey value
patchkey value
key appliedValue Objectinjectedapplied
Objectapplied key valueskey appliedValue
patchkey injectedpreviouskey
nextInjected Objectappliedlength previous applied
Objectpatchlength injected nextInjected
_logService
_configurationServicesession
SessionConfigKeyAgentMergeController agentMerge injectedConfiguration nextInjected
patch
session agentMerge AgentMergeSessionState preserveControllerState
injected agentMergeinjectedConfiguration
injected
patch Record
SessionConfigKeyAgentMergeController preserveControllerState
agentMerge injectedConfiguration
patch session agentMerge
_logService
_configurationServicesession patch
session delay
runtime _runtimessession
runtime
runtimeevaluationSchedulerdelay
session
_evaluationssession
_evaluatingSessionssession
_logService
session
error
_runtimessession
_logService
error errorkind errorkind
session errorkind errormessage
_logServiceerror
_runtimessessionbackstopScheduler
_evaluatingSessionssession
session
runtime _runtimessession
state _stateManagersession
agentMerge stateconfigvalues
runtime state agentMergeenabled _stateManagersession
branchName session runtime state
session runtime
branchName
_logService
runtimebackstopScheduler
target agentMergetarget
target
now
target branchName enabledAt now commentWatermark now
_logService
session AgentSystemNotificationKindAgentMergeEnabled branchName
session agentMerge target
targetbranchName branchName
session agentMerge agentMergeDisableReasonstargetbranchName branchName
_gitStateServicesession stateworkingDirectories stateworkingDirectories
session runtime
refreshedState _stateManagersession
refreshedState targetbranchName
session agentMerge agentMergeDisableReasons
gitHubState refreshedState_meta
pullRequestUrl gitHubState
targetpullRequestUrl
pullRequestUrl
_logService
runtimebackstopScheduler
target target pullRequestUrl
_logService
session agentMerge target
pullRequestUrl pullRequestUrl targetpullRequestUrl
session agentMerge agentMergeDisableReasons
parsed targetpullRequestUrl
parsed
session agentMerge agentMergeDisableReasons
ref parsed runtimeabortControllersignal
session runtime
ref
session agentMerge agentMergeDisableReasons
subscription session runtime ref
subscription session runtime
snapshot subscriptionresourcesnapshot
configuration agentMerge
session agentMerge configuration
session runtime
gate snapshot configuration targetcommentWatermark
session gate
gatekind
runtimeindeterminate
runtimereportedCredentialFailure
gatekind
session runtime snapshot
session runtime gatecause
session agentMerge agentMergeDisableReasonsMathmaximumIndeterminateDuration gatereason
runtimebackstopScheduler
session agentMerge agentMergeDisableReasons
runtimebackstopScheduler
snapshot
_logService
runtimebackstopScheduler
agentMerge gatefingerprint
_logService
runtimebackstopScheduler
repeatedPromptCount agentMergelastPromptFingerprint gatefingerprint agentMergerepeatedPromptCount
totalPromptCount agentMergetotalPromptCount
repeatedPromptCount maximumRepeatedPromptCount totalPromptCount maximumTotalPromptCount
_logService
session agentMerge agentMergeDisableReasons
turnId
repairBaseCommit session
context IAgentMergeTurnContext
session
turnId
ref
headSha gatecontextheadSha
actions gateactions
configuration
snapshot
signal runtimeabortControllersignal
commentWatermark gatecontextcommentWatermark
session runtime
session target
_stateManagersession
_optionssession turnId gateactions gatecontext
_logService
runtimebackstopScheduler
_activeTurnssession context
_logService
session agentMerge
lastPromptFingerprint gatefingerprint
lastPromptAt
repeatedPromptCount
totalPromptCount
repairBaseCommit
agentMerge gatefingerprint
_logService
runtimebackstopScheduler
session agentMerge
lastPromptFingerprint gatefingerprint
lastPromptAt
_logService
session runtime ref snapshot configuration agentMerge
session runtime AgentMergeRuntime state NonNullableReturnTypeAgentHostStateManager
gitState state_meta
gitStatebranchName
gitStatebranchName
runtimedidRefreshForMissingBranch gitState
runtimedidRefreshForMissingBranch
_logService
_gitStateServicesession stateworkingDirectories stateworkingDirectories
session runtime
refreshed _stateManagersession_metabranchName
refreshed
_logService
_logService
refreshed
parsed IParsedPullRequestUrl signal AbortSignal PullRequestRef
credential _gitHubServicecredentialssignal
credentialaccounthost parsedapiHost
credentialaccount owner parsedowner repo parsedrepo parsed
session runtime AgentMergeRuntime ref PullRequestRef PullRequestSubscription
runtimeref runtimeref ref runtimesubscriptionvalue
_logService
runtimesubscriptionvalue
runtimeref ref
subscription _gitHubServicepullRequestsref
priority
conversation
topLevelComments
submittedReviews
reviewThreads
includeBodies
checks required
mergeability
_logService
session runtime
subscription
runtimesubscriptionvalue subscription
snapshotStore
snapshotStorereader
subscriptionresourcesnapshotreader
runtimeevaluationScheduler
runtimesnapshotObservervalue snapshotStore
_logService
subscription runtimecancellationtoken authoritative
error
session runtime
error
_logService
session runtime subscription
session runtime AgentMergeRuntime
_runtimessession runtime runtimeabortControllersignalaborted
agentMerge AgentMergeSessionState AgentMergeConfiguration
defaults AgentMergeConfiguration
addressReviews _configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyAddressReviews defaultAgentMergeConfigurationaddressReviews
fixCI _configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyFixCI defaultAgentMergeConfigurationfixCI
resolveConflicts _configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyResolveConflicts defaultAgentMergeConfigurationresolveConflicts
mergePullRequest _configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyMergePullRequest defaultAgentMergeConfigurationmergePullRequest
mergeMethod _configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyMergeMethod defaultAgentMergeConfigurationmergeMethod
replyAttribution _configurationServiceagentMergeRootConfigSchema AgentMergeConfigKeyReplyAttribution defaultAgentMergeConfigurationreplyAttribution
defaults agentMergeoverrides
snapshot PullRequestSnapshot
core snapshotcorevalue
core
coreheadRepositoryNameWithOwner
coreheadRepositoryNameWithOwner corerepositoryNameWithOwner
coremaintainerCanModify
session target AgentMergeTarget
state _stateManagersession
state targetbranchName
targetpullRequestUrl
pullRequestUrl state_meta
pullRequestUrl pullRequestUrl targetpullRequestUrl
session runtime AgentMergeRuntime ref PullRequestRef snapshot PullRequestSnapshot configuration AgentMergeConfiguration agentMerge AgentMergeSessionState
headSha snapshotcorevalueheadSha
headSha
_logService
runtimebackstopScheduler
preparation _gitHubServicemutationsref headSha runtimeabortControllersignal
_logService
session runtime _stateManagersession
runtimebackstopScheduler
currentState _stateManagersessionconfigvalues
currentTarget currentStatetarget
currentStateenabled
currentTarget
session currentTarget
currentTargetpullRequestUrl agentMergetargetpullRequestUrl
_logService
runtimebackstopScheduler
currentConfiguration currentState
currentConfigurationmergePullRequest
_logService
runtimebackstopScheduler
freshGate preparationsnapshot currentConfiguration currentTargetcommentWatermark
freshGatekind
_logService
session
authorization
confirmed
authorizationId
preparationsnapshotmergeabilityvaluemergeQueueRequired
result _gitHubServicemutationspreparation authorization runtimeabortControllersignal
_logService
runtimebackstopScheduler
method currentConfigurationmergeMethod preparationsnapshotmergeabilityvalueallowedMergeMethods
method
_logService
runtimebackstopScheduler
result _gitHubServicemutationspreparation method authorization runtimeabortControllersignal
_logService
session currentState agentMergeDisableReasons
session
context _activeTurnssession
context
session
_activeTurnssession
state _stateManagersession
completedTurn stateturnsturn turnid contextturnId
agentMerge stateconfigvalues
runtime _runtimessession
agentMergeenabled runtimesubscriptionvalue
_logService
shouldAdvanceWatermark contextactions completedTurnstate TurnStateComplete
_logService
shouldAdvanceWatermark agentMergetarget contextcommentWatermark agentMergetargetcommentWatermark
session agentMerge
target agentMergetarget commentWatermark contextcommentWatermark
current _stateManagersessionconfigvalues agentMerge
session current current
runtimesubscriptionvalue runtimecancellationtoken authoritative
error
_logService error
session
session
workingDirectory _stateManagersessionworkingDirectories
workingDirectory
repositoryRoot _gitServiceworkingDirectory
repositoryRoot _gitServicerepositoryRoot
error
_logService error
session
agentMerge AgentMergeSessionState
configuration AgentMergeConfiguration
configurationmergePullRequest agentMergerepairBaseCommit
currentCommit session
configuration agentMerge currentCommit
_logService
session AgentSystemNotificationKindAgentMergeDisabled
_configurationServicesession
SessionConfigKeyAgentMerge
enabled agentMergeenabled
overrides agentMergeoverrides mergePullRequest
SessionConfigKeyAgentMergeController agentMerge repairBaseCommit
session
previous AgentMergeSessionState
current AgentMergeSessionState
current currentrepairBaseCommit
currentmergePullRequest
previous previousmergePullRequest
_logService
session current repairBaseCommit
session current AgentMergeSessionState patch PartialAgentMergeSessionState
_configurationServicesession
SessionConfigKeyAgentMergeController current patch
session current AgentMergeSessionState reason AgentMergeDisableReason
_logService
_activeTurnssession
_monitoredSessionssession
session AgentSystemNotificationKindAgentMergeDisabled reasonnotice
patch Record
SessionConfigKeyAgentMerge
enabled
currentoverrides overrides currentoverrides
SessionConfigKeyAgentMergeController
patch session current
_configurationServicesession patch
session
session kind AgentSystemNotificationKind content
_optionssession kind content
error
_logService error
patch Record session agentMerge AgentMergeSessionState
injected agentMergeinjectedConfiguration
injected
values _configurationServicesession
key appliedValue Objectinjectedapplied
valueskey appliedValue
patchkey injectedpreviouskey
session
context _activeTurnssession
context
_activeTurnssession
_stateManagersessionactiveTurnid contextturnId
_logService
_optionssession contextturnId
_runtimessession
_runtimessession
_logService
session
state ReturnTypeAgentHostStateManager branchName
state_metabranchName branchName
session
state _stateManagersession
pullRequestUrl stateconfigvaluestargetpullRequestUrl
pullRequestUrl pullRequestUrlowner
session kind message
_stateManager
resource _gitHubEndpointService
reason AuthRequiredReasonRequired
organization session
remedy message organization
_logService
session runtime AgentMergeRuntime snapshot PullRequestSnapshot
blocked snapshot
blocked
runtimereportedCredentialFailure
runtimereportedCredentialFailure blockedid
runtimereportedCredentialFailure blockedid
session blockedkind blockedmessage
session runtime AgentMergeRuntime cause
now Date
current runtimeindeterminate
currentcause cause now currentobservedAt indeterminateObservationGap
runtimeindeterminate cause since now observedAt now
currentobservedAt now
now currentsince maximumIndeterminateDuration
_logService
session gate ReturnType evaluateAgentMerge
gatekind
_logService
_logService
_logService
_logService
_logService
owner
repo
apiHost
value IParsedPullRequestUrl
url
url value
match urlpathname
matchgroups
matchgroups Number
host urlhost
owner matchgroupsowner
repo matchgroupsrepo
apiHost apiBaseUrihost
left PullRequestRef right PullRequestRef
lefthost righthost
leftaccountId rightaccountId
leftowner rightowner
leftrepo rightrepo
left right
state AgentMergeSessionState fingerprint
statelastPromptFingerprint fingerprint statelastPromptAt
lastPromptAt DatestatelastPromptAt
NumberlastPromptAt Date lastPromptAt backstopInterval
current AgentMergeSessionState patch PartialAgentMergeSessionState OmitAgentMergeSessionState
next current patch
nexttarget target nexttarget
nextinjectedConfiguration injectedConfiguration nextinjectedConfiguration
nextlastPromptFingerprint lastPromptFingerprint nextlastPromptFingerprint
nextlastPromptAt lastPromptAt nextlastPromptAt
nextrepeatedPromptCount repeatedPromptCount nextrepeatedPromptCount
nexttotalPromptCount totalPromptCount nexttotalPromptCount
nextrepairBaseCommit repairBaseCommit nextrepairBaseCommit
state AgentMergeSessionState
stateoverrides Objectstateoverrides
error
error
error errorname error
message
message
snapshot PullRequestSnapshot id kind message
fragment agentMergeGateFragments
error snapshotfragmenterror
errorkind errorkind
id kind errorkind message errormessage