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 { disposableTimeout, timeout } from '../../../../../base/common/async.js';
import { CancellationError, isCancellationError } from '../../../../../base/common/errors.js';
import { Disposable, DisposableMap, DisposableStore, toDisposable, type IReference } from '../../../../../base/common/lifecycle.js';
import { autorun, derived, type IObservable, observableSignalFromEvent, observableValue } from '../../../../../base/common/observable.js';
import { hasKey } from '../../../../../base/common/types.js';
generateUuid
localize
isAgentHostAutomationCatalogMigrated isAgentHostLegacyAutomationImport isAgentHostLegacyAutomationImportPending
SessionConfigKey
ActionType
AutomationMisfirePolicy AutomationOperation AutomationRunOriginKind AutomationRunStatus AutomationTriggerKind MessageKind
isAhpAutomationCatalogChannel StateComponents
ILogService
IStorageService StorageScope
ITelemetryService
AutomationRunTrigger AutomationTarget IAutomationDescriptor IAutomationRun IAutomationSchedule
AutomationActiveRunError isAutomationActiveRunError serializeAutomationEditableState
publishAutomationMigration
IAutomation IAutomationSnapshotImportResult IGuardedAutomationSnapshotRemovalResult ISessionsProviderAutomations
IAutomationStorageService
PickIAgentConnection
kind StateComponentsAutomationCatalog
resource
owner
IReferenceIAgentSubscriptionAutomationState
sessionResource
version
runs ISerializedArchivedRun
runs IAutomationRun
repairedRuns
resource
resource
provider
providerForSessionSchemescheme
providerForResourceSchemescheme
preservesImportedRunHistory
_catalogReference IReferenceIAgentSubscriptionAutomationState
_catalog IAgentSubscriptionAutomationState
_catalogChanged
_ready
_runsForCache
_pendingWaits
_pendingWaitIds
_archiveKey
_archivedRuns
_migrationPromise
_lastPreflightDeferralKey
automations IObservable IAutomationDescriptor
runs IObservable IAutomationRun
_providerId
_connection IAgentHostAutomationConnection
_legacySource ISessionsProviderAutomations
_boundaryMapper IAgentHostAutomationBoundaryMapper
_logService ILogService
_storageService IStorageService
_telemetryService ITelemetryService
_automationStorageService IAutomationStorageService
_archiveKey
archive
_archivedRuns archiveruns
archive
_storageServiceStorageScope _archiveKey _store
archive
_archivedRunsarchiveruns
archive
_catalogReference _connection
StateComponentsAutomationCatalog
_catalog _catalogReferenceobject
_catalogChanged _catalogonDidChange
_catalogonDidError
_catalogerror _logService
reader
_catalogChangedreader
catalog _catalogvalue
catalog catalog
catalog
catalogentriesautomation automationoperationsAutomationOperationRun
catalogentriesautomation automationdefinition
_legacySource _legacySourceautomationsreaderlength
_migrationPromise
_readyreader
_ready
automations reader
_catalogChangedreader
_readyreader
_legacySourceautomationsreader
runs reader
_catalogChangedreader
_readyreader
_legacySourcerunsreader
_archivedRunsreader
first second secondstartedAtfirststartedAt
_archivedRunsreader
first second secondstartedAtfirststartedAt
id IAutomationDescriptor
_ready
id
_legacySourceid id
automationId
_ready
state automationId
state
statedefinition
stateoperationsAutomationOperationRun
automationId
automationId AutomationOperationRun
automationId
automationId AutomationOperationUpdate
automationId
automationId AutomationOperationRemove
automationId IObservable IAutomationRun
result _runsForCacheautomationId
result
result reader runsreaderrun runautomationId automationId
_runsForCacheautomationId result
result
options ICreateAutomationOptions mutationGuard AutomationMutationGuard IAutomationDescriptor
_ready _legacySource
_legacySourceoptions mutationGuard
mutationGuard
now
descriptor IAutomationDescriptor
id
name optionsname
prompt optionsprompt
schedule optionsschedule
target optionstarget
modelId optionsmodelId
mode optionsmode
permissionLevel optionspermissionLevel
enabled optionsenabled
createdAt now
updatedAt now
state descriptor
state
id patch IUpdateAutomationOptions IAutomationDescriptor
_ready _legacySourceid
_legacySourceid patch
id AutomationOperationUpdate
current id
updated current patch
state updated
state
id patch IUpdateAutomationOptions expected IAutomationDescriptor mutationGuard AutomationMutationGuard IGuardedAutomationUpdateResult
_ready _legacySourceid
_legacySourceid patch expected mutationGuard
mutationGuard
current id
current current expected
kind current
kind automation id patch
id mutationGuard AutomationMutationGuard
_ready _legacySourceid
_legacySourceid mutationGuard
id AutomationOperationRemove
mutationGuard
resource id
id
type ActionTypeAutomationRemoved resource
catalog catalogentriesautomation automationresource resource
_runsForCacheid
snapshot IAutomation IAutomationSnapshotImportResult
snapshot
snapshot IAutomation importPending IAutomationSnapshotImportResult
snapshotruns
existing snapshotautomationid
existing
current existing
expected snapshotautomation existing
current expected
existingdefinition
snapshotautomation importPending
snapshotruns
kind
kind current automation current runs existingresource
importPending existingdefinition
snapshotautomation importPending
snapshotruns
kind
snapshotautomation importPending
snapshotruns
_logService
kind
snapshot IAutomation
snapshotruns
snapshotautomationid
snapshotautomation
snapshotautomation
snapshotruns
expected IAutomation IGuardedAutomationSnapshotRemovalResult
current expectedautomationid
current
kind
projected current
canonicalExpected expectedautomation current
projected canonicalExpected
kind current automation projected runs currentresource
expectedautomationid
kind
snapshot IAutomation
current snapshotautomationid
current currentdefinition
snapshotautomationid
automationId trigger AutomationRunTrigger _leaderWindowId IAutomationRunClaim
_ready _legacySourceautomationId
_legacySourceautomationId trigger _leaderWindowId
trigger
automationId AutomationOperationRun
activeRun automationId
activeRun
claimed run activeRun
result _connection
channel
automation automationId
requestId
catalog state stateentriesautomation automationrunsrun
runresource resultresource runprimarySession run
run catalogentriesautomation automationrunscandidate candidateresource resultresource
run
projectedRun run
claimed
run projectedRun
externalDispatch
sessionResource projectedRunsessionResource
whenCompleted state stateentriesautomation automationrunscandidate
candidateresource resultresource candidate
_connectioninitializeResultautomationsrunCancellation
_connectionresultresource type ActionTypeAutomationRunCancelRequested
resource
session resource
provider _boundaryMapperproviderForSessionSchemesessionscheme sessionscheme
resourceScheme _boundaryMapperprovider
resourceScheme session scheme resourceScheme session
runId _patch IUpdateAutomationRunOptions IAutomationRun
_ready _legacySourcerunsrun runid runId
_legacySourcerunId _patch
runsrun runid runId
runId
_ready _legacySourcerunsrun runid runId
_legacySourcerunId
automationId IAutomationRun
_ready _legacySourceautomationId
_legacySourceautomationId
runsrun runautomationId automationId runstatus runstatus
reason
_ready _legacySource
_legacySourcereason
_ready
_migrationPromise
_migrationPromise
migration
_migrationPromise migration
migration
_migrationPromise migration
_migrationPromise
startedAt Date
source _legacySource
discovered source sourceautomations
activeRuns source
discoveredautomation sourceautomationidisNonTerminalRun
activeRunslength
deferralKey activeRunsrun runid
_lastPreflightDeferralKey deferralKey
_lastPreflightDeferralKey deferralKey
_telemetryService
outcome
discoveredCount discoveredlength
migratedCount
failedCount
durationMs Date startedAt
_logService
activeRunsautomationId activeRunsid
_lastPreflightDeferralKey
_logService
_telemetryService
outcome
discoveredCount discoveredlength
migratedCount
failedCount
durationMs
migratedCount
failedCount
sourcecanCompleteMigration
failures Error
automation discovered
automation
migratedCount
error
error _storeisDisposed
failure error error error
failuresfailure
failedCount
error
_logService
_logService
failureslength
failures
resources discoveredautomation automationid
_connection
type ActionTypeRootConfigChanged
config
version
status
resources
_ready
durationMs Date startedAt
_logService
_telemetryService
outcome
discoveredCount discoveredlength
migratedCount resourceslength
failedCount
durationMs
error
error
error
durationMs Date startedAt
error
_logService
_telemetryService
outcome
discoveredCount discoveredlength
migratedCount
failedCount
durationMs
error
error
failedCount MathfailedCount errorerrorslength
_logService
_telemetryService
outcome
discoveredCount discoveredlength
migratedCount
failedCount
durationMs
error
migration _migrationPromise
migration
migration
remaining _legacySourceautomationslength
remaining
initialAutomation IAutomationDescriptor
source _legacySource
source
snapshot IAutomation automation initialAutomation runs sourceinitialAutomationid
attempt attempt attempt
result snapshot
resultkind
removal sourcesnapshot
removalkind removalkind
initialAutomationid
snapshot removalcurrent
automationId
current automationId
current currentdefinition
projected current
projected
projected currentdefinition
catalog _catalogvalue
catalog catalog
failures Error
pending catalogentriesautomation automationdefinition
automation pending
_storeisDisposed
id automationresource
legacyEntry _legacySourceid
legacyEntry
legacyEntry
id
error
error _storeisDisposed
failure error error error
failuresfailure
_logService
failureslength
failures
IAutomationDescriptor
catalog _catalogvalue
catalog catalog
catalogentries
automation automation
automation automation IAutomationDescriptor automation
first second secondcreatedAtfirstcreatedAt
IAutomationRun
catalog _catalogvalue
catalog catalog
catalogentries
automation automationruns
run run
first second secondstartedAtfirststartedAt
resource IAutomationRun
resourcerunsrun run
state AutomationEntry IAutomationDescriptor
state
target statedefinition
target
_logService
config statedefinitionsessionconfig
newestRun stateruns
id stateresource
name statedefinitiontitle
prompt statedefinitionmessagetext
schedule statedefinitiontriggers
target
modelId statedefinitionsessionmodelid statedefinitionsessionprovider
mode configSessionConfigKeyMode
permissionLevel configSessionConfigKeyAutoApprove
enabled statedefinitionenabled
createdAt statecreatedAt
updatedAt statemodifiedAt
lastRunAt newestRunlifecyclecreatedAt
nextRunAt statenextRunAt
definition AutomationDefinition AutomationTarget
provider definitionsessionprovider
directory definitionsessionworkingDirectories
directory
provider kind providerId _providerId sessionTypeId provider
config definitionsessionconfig
isolation configSessionConfigKeyIsolation
kind
folderUri _boundaryMapperdirectory directory
providerId _providerId
sessionTypeId provider
isolation isolation
kind branch configSessionConfigKeyBranch
isolation
kind
kind
run AutomationRunSummary IAutomationRun
lifecycle runlifecycle
primarySession runprimarySession runprimarySession
id runresource
automationId runautomation
status lifecyclestatus AutomationRunStatusCancelled lifecyclestatus
trigger runoriginkind AutomationRunOriginKindManual
runorigincatchUp
sessionResource primarySession
startedAt lifecyclestatus AutomationRunStatusPending lifecyclecreatedAt lifecyclestartedAt lifecyclecreatedAt
completedAt lifecyclestatus AutomationRunStatusCompleted lifecyclestatus AutomationRunStatusFailed lifecyclestatus AutomationRunStatusCancelled
lifecyclecompletedAt
errorMessage lifecyclestatus AutomationRunStatusFailed
lifecycleerrormessage
lifecyclestatus AutomationRunStatusCancelled
leaderWindowId
id AutomationEntry
id
resource AutomationEntry
catalog _catalogvalue
catalog catalog
catalogentriesautomation automationresource resource
id IAutomationDescriptor
automation id
automation
automation
id operation AutomationOperation
_ready _legacySourceid
idoperationsoperation
id operation AutomationOperation
id operation
state AutomationEntry IAutomationDescriptor
automation state
automation
automation
descriptor IAutomationDescriptor imported importPending AutomationEntry
resource descriptorid
definition descriptor imported importPending
state
type ActionTypeAutomationCreateRequested resource definition
catalog catalogentriesautomation automationresource resource
state
state
descriptor IAutomationDescriptor imported importPending AutomationEntry
resource descriptorid
current descriptorid
current
definition descriptor currentdefinition imported importPending
expected current definition
state
type ActionTypeAutomationUpdateRequested
resource
changes
title definitiontitle
message definitionmessage
session definitionsession
enabled definitionenabled
triggers definitiontriggers
_meta definition_meta
catalog
state catalogentriesautomation automationresource resource
projected state
projected
projected expected
importPending
statedefinition
importPending
statedefinition
state
state
descriptor IAutomationDescriptor existing AutomationDefinition imported importPending AutomationDefinition
config existingsessionconfig
provider descriptortargetsessionTypeId descriptormodelId
config SessionConfigKeyMode descriptormode
config SessionConfigKeyAutoApprove descriptorpermissionLevel
descriptortargetkind
config SessionConfigKeyIsolation descriptortargetisolationkind descriptortargetisolationkind
config SessionConfigKeyBranch descriptortargetisolationkind descriptortargetisolationbranch
config SessionConfigKeyIsolation
config SessionConfigKeyBranch
meta Record
existing_meta
imported existing
importPending
meta
importPending
meta
title descriptorname
message text descriptorprompt origin kind MessageKindAutomation
session
provider
model descriptormodelId id descriptormodelId provider
workingDirectories descriptortargetkind
_boundaryMapperdescriptortargetfolderUri descriptortargetfolderUri
config Objectconfiglength config
enabled descriptorenabled
triggers descriptorschedule
_meta Objectmetalength meta
modelId provider
resourceScheme provider _boundaryMapperprovider
prefix resourceScheme
prefix modelIdprefix
modelIdprefixlength
modelId
modelId
modelId
separator modelId
separator _boundaryMapperproviderForResourceSchememodelId separator
modelId provider
modelId
resourceScheme provider _boundaryMapperprovider
prefix resourceScheme
prefix modelIdprefix modelId
descriptor IAutomationDescriptor state AutomationEntry IAutomationDescriptor
definition descriptor statedefinition
state definition
current IAutomationDescriptor patch IUpdateAutomationOptions IAutomationDescriptor
now
schedule patchschedule currentschedule
enabled patchenabled currentenabled
target patchtarget currenttarget
targetAuthorityChanged patchtarget
patchtargetproviderId currenttargetproviderId patchtargetsessionTypeId currenttargetsessionTypeId
current
patchname name patchname
patchprompt prompt patchprompt
schedule
target
modelId patchmodelId
patchmodelId targetAuthorityChanged currentmodelId
mode patchmode patchmode currentmode
permissionLevel patchpermissionLevel patchpermissionLevel currentpermissionLevel
enabled
updatedAt now
action ParametersIAgentConnection resource
catalog AutomationState
AutomationEntry
result predicate action
_connection action
catalog result
state catalogentriesautomation automationresource actionresource
state
catalog AutomationState
action type ActionType resource
timeoutMs
AutomationState
_storeisDisposed
current _catalogvalue
current
current
current current
current
resolve reject
store
waitId _pendingWaitIds
settled
_pendingWaitswaitId store
store
settled
settled
result AutomationState Error
settled
settled
_pendingWaitswaitId
result
result
result
catalog _catalogvalue
catalog
catalog
catalog catalog
catalog
store_catalogcheck
_catalogonDidError
store_catalogerror error
action
store_connectionenvelope
envelopechannel
enveloperejectionReason
envelopeactiontype actiontype
envelopeaction resource
envelopeactionresource actionresource
enveloperejectionReason
timeoutMs
store timeoutMs
deadline Date
lastError Error
Date deadline
_storeisDisposed
_connection channel
error
error _storeisDisposed
lastError error error error
_storeisDisposed
lastError
ILoadedLegacyRunArchive
raw _storageService_archiveKey StorageScope
raw
runs repairedRuns
parsed raw
parsedkind
_logService
runs repairedRuns
parsedkind
_logService
runs repairedRuns
parseddroppedRuns
_logService
repairedRuns
runs parsedrunsrun
terminalRun run
terminalRun run
repairedRuns
terminalRun
runs repairedRuns
archive ILoadedLegacyRunArchive
archiverepairedRuns
_logService
error
_logService
raw _automationStorageService_archiveKey
attempt attempt attempt
raw
parsed raw
parsedkind
parsedkind
runs parsedrunsterminalizeArchivedRun
runsrun index run parsedrunsindex
_archivedRunsruns
archive ILegacyRunArchive
version
runs runsrun
run
sessionResource runsessionResource
result _automationStorageService_archiveKey raw archive
resultswapped
_archivedRunsruns
raw resultcurrentValue
runs IAutomationRun
runslength
raw _automationStorageService_archiveKey
attempt attempt attempt
current IAutomationRun
raw
parsed raw
parsedkind
parsedkind
_logService
current parsedruns
parseddroppedRuns
_logService
merged runs currentterminalizeArchivedRun
archive ILegacyRunArchive
version
runs mergedrun
run
sessionResource runsessionResource
next archive
result _automationStorageService_archiveKey raw next
resultswapped
_archivedRunsmerged
raw resultcurrentValue
id
scheme path
resource
resourcepathBoolean resource
resource
resourcepathBoolean resource
run AutomationRunSummary
runlifecyclestatus AutomationRunStatusCompleted
runlifecyclestatus AutomationRunStatusFailed
runlifecyclestatus AutomationRunStatusCancelled
triggers AutomationDefinition IAutomationSchedule
trigger triggerstrigger triggerkind AutomationTriggerKindSchedule
trigger
interval scheduleHour scheduleMinute scheduleDay
minuteValue hourValue dayOfMonth month dayValue remaining triggerscheduleexpression
remaininglength dayOfMonth month
interval scheduleHour scheduleMinute scheduleDay
scheduleMinute minuteValue
scheduleMinute
interval scheduleHour scheduleMinute scheduleDay
hourValue dayValue
interval scheduleHour scheduleMinute scheduleDay
scheduleHour hourValue
scheduleHour
interval scheduleHour scheduleMinute scheduleDay
dayValue
interval scheduleHour scheduleMinute scheduleDay
scheduleDay dayValue
scheduleDay
interval scheduleHour scheduleMinute scheduleDay
interval scheduleHour scheduleMinute scheduleDay
value minimum maximum
value value
parsed value
parsed minimum parsed maximum parsed
schedule IAutomationSchedule AutomationDefinition
scheduleinterval
timeZone IntltimeZone
expression
scheduleinterval
expression
expression
expression
id
kind AutomationTriggerKindSchedule
schedule expression timeZone
misfirePolicy AutomationMisfirePolicyRunOnce
value
value value
target Record key value
value
targetkey
targetkey value
items
result
seen
item items
seenitemid
seenitemid
resultitem
result
runs IAutomationRun
activeRun runsisNonTerminalRun
activeRun
activeRunautomationId activeRunid
run IAutomationRun
runstatus runstatus
run IAutomationRun IAutomationRun
run
run
Object
run
status
completedAt runcompletedAt runstartedAt
errorMessage runerrorMessage
value value ISerializedArchivedRun
value value value
run value Record
run
run
run run run run
run run run
run
run
run run
run run
run run
kind runs IAutomationRun droppedRuns
kind error
kind version
raw ParsedArchivedRuns
value
value raw
error
kind error error errormessage error
value value value
kind error
archive value Record
archive archive
kind version archive
archive archive
kind error
runs IAutomationRun
run archive
run
runs
run
sessionResource runsessionResource runsessionResource
kind runs droppedRuns archivelength runslength