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 { assertNever } from '../../../../base/common/assert.js';
import { Emitter, Event } from '../../../../base/common/event.js';
import { Disposable, IReference } from '../../../../base/common/lifecycle.js';
import { ResourceMap } from '../../../../base/common/map.js';
import { IObservable, observableFromEvent } from '../../../../base/common/observable.js';
import { URI } from '../../../../base/common/uri.js';
import { ActionEnvelope, ActionType, type AutomationAction ChangesetAction ChatAction AnnotationsAction ClientAnnotationsAction ClientChangesetAction IRootConfigChangedAction SessionAction StateAction isChangesetAction isChatAction isAnnotationsAction isSessionAction
automationReducer automationRunReducer changesetReducer chatReducer annotationsReducer rootReducer sessionReducer
terminalReducer
RootAction SessionAction IProtocolSessionAction ChatAction IProtocolChatAction TerminalAction
AnnotationsState AutomationRunState AutomationState ChangesetState ChatState RootState SessionState TerminalState
IStateSnapshot
isAhpAutomationCatalogChannel isAhpAutomationRunChannel isAhpRootChannel StateComponents
normalizeLegacyChatStateErrors
value Error
verifiedValue
onDidChange Event
onDidError EventError
onWillApplyAction EventActionEnvelope
onDidApplyAction EventActionEnvelope
resource
kind StateComponents
refCount
holders IActiveSubscriptionHolder
status
owner
count
_confirmedState
_error Error
_bufferedEnvelopes ActionEnvelope
_onDidChange
onDidChange Event _onDidChangeevent
_onDidError
onDidError EventError _onDidErrorevent
_onWillApplyAction
onWillApplyAction EventActionEnvelope _onWillApplyActionevent
_onDidApplyAction
onDidApplyAction EventActionEnvelope _onDidApplyActionevent
_clientId
msg
clientId msg
_clientId clientId
_log log
Error
_error
_error
_confirmedState
_confirmedState
state fromSeq
_confirmedState state
_error
fromSeq
_onDidChangevalue
error Error
_error error
_onDidErrorerror
envelope ActionEnvelope
envelope
_confirmedState
_bufferedEnvelopes
_bufferedEnvelopes
_bufferedEnvelopesenvelope
isOwnAction envelopeoriginclientId _clientId
_onWillApplyActionenvelope
envelope isOwnAction
_onDidApplyActionenvelope
state action StateAction
envelope ActionEnvelope
_fromSeq
buffered _bufferedEnvelopes
buffered
_bufferedEnvelopes
envelope buffered
envelopeserverSeq _fromSeq
isOwnAction envelopeoriginclientId _clientId
envelope isOwnAction
envelope ActionEnvelope _isOwnAction
enveloperejectionReason
_confirmedState _confirmedState envelopeaction
_onDidChangevalue
override state RootState action StateAction RootState
state action RootAction _log
override envelope ActionEnvelope
envelopechannel envelopeactiontype
clientSeq
action SessionAction
clientSeq
action SessionAction ChatAction AnnotationsAction
channel
_pendingActions IPendingAction
_optimisticState SessionState
_sessionUri
sessionUri
clientId
msg
clientId log
_sessionUri sessionUri
_seqAllocator seqAllocator
action SessionAction
clientSeq
_pendingActions clientSeq action
base _optimisticState verifiedValue
base
_optimisticState base action IProtocolSessionAction _log
_onDidChange_optimisticState
clientSeq
override SessionState
_optimisticState
override state SessionState action StateAction SessionState
state action IProtocolSessionAction _log
override envelope ActionEnvelope
envelopeaction envelopechannel _sessionUri
override fromSeq
fromSeq
override envelope ActionEnvelope isOwnAction
isOwnAction envelopeorigin
idx _pendingActionsp pclientSeq envelopeoriginclientSeq
idx
enveloperejectionReason
envelopeaction
_pendingActionsidx
enveloperejectionReason
envelopeaction
enveloperejectionReason
envelopeaction
action StateAction
_confirmedState
_confirmedState _confirmedState action
confirmed _confirmedState
confirmed
_optimisticState
_pendingActionslength
_optimisticState
_onDidChangeconfirmed
state confirmed
pending _pendingActions
state state pendingaction IProtocolSessionAction _log
_optimisticState state
_onDidChangestate
_pendingActionslength
_optimisticState
IPendingDispatchAction
_pendingActionsp clientSeq pclientSeq action paction channel _sessionUri
clientSeq
idx _pendingActionsp pclientSeq clientSeq
idx
_pendingActionsidx
clientSeq
action ChatAction
_pendingActions IPendingChatAction
_optimisticState ChatState
_chatUri
chatUri
clientId
msg
clientId log
_chatUri chatUri
_seqAllocator seqAllocator
override state ChatState fromSeq
state fromSeq
action ChatAction
clientSeq
_pendingActions clientSeq action
base _optimisticState verifiedValue
base
_optimisticState base action IProtocolChatAction _log
_onDidChange_optimisticState
clientSeq
override ChatState
_optimisticState
override state ChatState action StateAction ChatState
state action IProtocolChatAction _log
override envelope ActionEnvelope
envelopeaction envelopechannel _chatUri
override fromSeq
fromSeq
override envelope ActionEnvelope isOwnAction
isOwnAction envelopeorigin
idx _pendingActionsp pclientSeq envelopeoriginclientSeq
idx
enveloperejectionReason
envelopeaction
_pendingActionsidx
enveloperejectionReason
envelopeaction
enveloperejectionReason
envelopeaction
envelopeaction
action StateAction
action
actiontype ActionTypeChatTurnComplete actiontype ActionTypeChatTurnCancelled actiontype ActionTypeChatError
index _pendingActionsp pactiontype ActionTypeChatTurnStarted pactionturnId actionturnId
index
action pendingAction _pendingActionsindex
_confirmedState _confirmedStateactiveTurn _confirmedStateactiveTurnid actionturnId
_confirmedState _confirmedState pendingAction
action StateAction
_confirmedState
_confirmedState _confirmedState action
confirmed _confirmedState
confirmed
_optimisticState
_pendingActionslength
_optimisticState
_onDidChangeconfirmed
state confirmed
pending _pendingActions
state state pendingaction IProtocolChatAction _log
_optimisticState state
_onDidChangestate
_pendingActionslength
_optimisticState
IPendingDispatchAction
_pendingActionsp clientSeq pclientSeq action paction channel _chatUri
clientSeq
idx _pendingActionsp pclientSeq clientSeq
idx
_pendingActionsidx
_terminalUri
terminalUri clientId msg
clientId log
_terminalUri terminalUri
override state TerminalState action StateAction TerminalState
state action TerminalAction _log
override envelope ActionEnvelope
envelopeactiontype envelopechannel _terminalUri
clientId msg
clientId log
override state AutomationState action StateAction AutomationState
state action AutomationAction _log
override envelope ActionEnvelope
envelopechannel
override envelope ActionEnvelope isOwnAction
enveloperejectionReason
envelope isOwnAction
_resource
resource clientId msg
clientId log
_resource resource
override state AutomationRunState action StateAction AutomationRunState
state action AutomationRunAction _log
override envelope ActionEnvelope
envelopechannel envelopechannel _resource
override envelope ActionEnvelope isOwnAction
enveloperejectionReason
envelope isOwnAction
_pendingActions clientSeq action ClientChangesetAction
_optimisticState ChangesetState
_changesetUri
changesetUri clientId msg
clientId log
_changesetUri changesetUri
_seqAllocator seqAllocator
action ClientChangesetAction
clientSeq
_pendingActions clientSeq action
base _optimisticState verifiedValue
base
_optimisticState base action _log
_onDidChange_optimisticState
clientSeq
override ChangesetState
_optimisticState
override state ChangesetState action StateAction ChangesetState
state action ChangesetAction _log
override envelope ActionEnvelope
envelopeaction envelopechannel _changesetUri
override fromSeq
fromSeq
override envelope ActionEnvelope isOwnAction
isOwnAction envelopeorigin
index _pendingActionspending pendingclientSeq envelopeoriginclientSeq
index
enveloperejectionReason
envelopeaction
_pendingActionsindex
envelopeaction
envelopeaction
action StateAction
_confirmedState
_confirmedState _confirmedState action
confirmed _confirmedState
confirmed
_optimisticState
_pendingActionslength
_optimisticState
_onDidChangeconfirmed
state confirmed
pending _pendingActions
state state pendingaction _log
_optimisticState state
_onDidChangestate
SessionStateSubscription ChatStateSubscription TerminalStateSubscription ChangesetStateSubscription AnnotationsStateSubscription AutomationCatalogSubscription AutomationRunSubscription
clientSeq
action AnnotationsAction
_pendingActions IPendingAnnotationsAction
_optimisticState AnnotationsState
_annotationsUri
annotationsUri clientId msg
clientId log
_annotationsUri annotationsUri
_seqAllocator seqAllocator
action AnnotationsAction
clientSeq
_pendingActions clientSeq action
base _optimisticState verifiedValue
base
_optimisticState base action _log
_onDidChange_optimisticState
clientSeq
override AnnotationsState
_optimisticState
override state AnnotationsState action StateAction AnnotationsState
state action AnnotationsAction _log
override envelope ActionEnvelope
envelopeaction envelopechannel _annotationsUri
override fromSeq
fromSeq
override envelope ActionEnvelope isOwnAction
isOwnAction envelopeorigin
idx _pendingActionsp pclientSeq envelopeoriginclientSeq
idx
enveloperejectionReason
envelopeaction
_pendingActionsidx
envelopeaction
envelopeaction
action StateAction
_confirmedState
_confirmedState _confirmedState action
confirmed _confirmedState
confirmed
_optimisticState
_pendingActionslength
_optimisticState
_onDidChangeconfirmed
state confirmed
pending _pendingActions
state state pendingaction _log
_optimisticState state
_onDidChangestate
_pendingActionslength
_optimisticState
IPendingDispatchAction
_pendingActionsp clientSeq pclientSeq action paction channel _annotationsUri
clientSeq
index _pendingActionsp pclientSeq clientSeq
index
_pendingActionsindex
sub ManagedSubscription kind StateComponents refCount holders Map
_subscriptions
_inflightCreates
_referenceOwnerIds
_rootState RootStateSubscription
_clientId
msg
resource IStateSnapshot
resource
clientId
msg
resource IStateSnapshot
resource
_clientId clientId
_seqAllocator seqAllocator
_log log
_subscribe subscribe
_unsubscribe unsubscribe
_rootState clientId log
IAgentSubscriptionRootState
_rootState
state RootState fromSeq
_rootStatestate fromSeq
resource IAgentSubscription
entry _subscriptionsresource
entrysub IAgentSubscription
resource
_inflightCreatesresource
resource promise
_inflightCreatesresource promise
promise
_inflightCreatesresource promise
_inflightCreatesresource
kind StateComponents resource owner IReferenceIAgentSubscription
existing _subscriptionsresource
existing
existingsubvalue
_subscriptionsresource
resource existing
existingrefCount
resource existing owner
key resource
sub kind key
entry ManagedSubscriptionEntry sub kind refCount holders
_subscriptionsresource entry
inflight _inflightCreatesresource
inflight
inflight
snapshot resource
_subscriptionsresource entry
subsnapshotstate snapshotfromSeq
err
_subscriptionsresource entry
suberr err err
resource entry owner
resource entry ManagedSubscriptionEntry owner IReferenceIAgentSubscription
ownerId _referenceOwnerIds
entryholdersownerId owner
isDisposed
object entrysub IAgentSubscription
isDisposed
isDisposed
entryholdersownerId
resource entry
resource entry ManagedSubscriptionEntry
resource
entrysub entrysub entrysub
entrysub
entrysub
resource
resource
error
message error errormessage error
envelope ActionEnvelope
_rootStateenvelope
sub _subscriptions
subenvelope
channel action SessionAction ChatAction TerminalAction ClientChangesetAction ClientAnnotationsAction ClientAutomationAction ClientAutomationRunAction IRootConfigChangedAction
action
entry _subscriptionschannel
entrysub
entrysubaction
action
entry _subscriptionschannel
entrysub
entrysubaction
action
entry _subscriptionschannel
entrysub
entrysubaction
action
entry _subscriptionschannel
entrysub
entrysubaction
_subscriptions
IActiveSubscriptionInfo
out IActiveSubscriptionInfo
resource entry _subscriptions
value entrysubvalue
status value value
out resource kind entrykind refCount entryrefCount holders entry status
out
entry ManagedSubscriptionEntry IActiveSubscriptionHolder
counts
owner entryholders
countsowner countsowner
counts
owner count owner count
a b bcount acount
IPendingDispatchAction
out IPendingDispatchAction
sub _subscriptions
sub sub sub
outsub
out
resource clientSeq
entry _subscriptionsresource
entrysub entrysub entrysub
entrysubclientSeq
resource state fromSeq preservePending
resource
_rootStatestate RootState fromSeq
entry _subscriptionsresource
entry
preservePending entrysub entrysub entrysub
entrysub
entrysubstate fromSeq
missing
resource missing
entry _subscriptionsresource
entry
entrysub entrysub entrysub
entrysub
entrysub
kind StateComponents key ManagedSubscription
kind
StateComponentsSession
key _clientId _seqAllocator _log
StateComponentsChat
key _clientId _seqAllocator _log
StateComponentsTerminal
key _clientId _log
StateComponentsChangeset
key _clientId _seqAllocator _log
StateComponentsAnnotations
key _clientId _seqAllocator _log
StateComponentsAutomationCatalog
_clientId _log
StateComponentsAutomationRun
key _clientId _log
StateComponentsRoot
kind
resource expected ManagedSubscriptionEntry
entry _subscriptionsresource
entry expected entry expected
entryrefCount
entryrefCount
_subscriptionsresource
resource entry
override
resource entry _subscriptions
resource
entrysub
_subscriptions
envelope ActionEnvelope subscribedUris Iterable
envelopechannel
uri subscribedUris
uri
envelopechannel
uri subscribedUris
uri
uri subscribedUris
uri envelopechannel
owner object sub IAgentSubscription IObservable
owner subonDidChange
v subvalue
v v