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 } from '../../../../../base/common/async.js';
import { CancellationToken, CancellationTokenSource } from '../../../../../base/common/cancellation.js';
import { constObservable, observableValue } from '../../../../../base/common/observable.js';
import { URI } from '../../../../../base/common/uri.js';
import { mock, upcastPartial } from '../../../../../base/test/common/mock.js';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../base/test/common/utils.js';
ConfirmationOptionKind
TestConfigurationService
NullLogService
InMemoryStorageService StorageScope StorageTarget
NullTelemetryService
ChatContextKeys
AutomationRunTrigger AutomationTarget IAutomationDescriptor IAutomationRun IAutomationSchedule
IAutomationRunDispatch IAutomationRunner IAutomationRunOperation
IAutomationService ICreateAutomationOptions IGuardedAutomationUpdateResult IUpdateAutomationOptions
ChatAutomationsEnabledContext
IToolImpl IToolInvocation IToolResult ToolProgress
IChat ISession ISessionType ISessionWorkspace
IProviderSessionType ISessionsManagementService
AutomationService
ConfigureAutomationTool ConfigureAutomationToolId DeleteAutomationTool DeleteAutomationToolId ListAutomationsTool ListAutomationsToolId RunAutomationTool RunAutomationToolId
IAutomationStorageCompareAndSwapResult IAutomationStorageService
progress ToolProgress
overrides PartialIAutomationDescriptor IAutomationDescriptor
id
name
prompt
schedule interval scheduleHour scheduleMinute scheduleDay
target
kind
folderUri
providerId
sessionTypeId
isolation kind
modelId
mode
permissionLevel
enabled
createdAt
updatedAt
nextRunAt
overrides
override automations
override runs
created ICreateAutomationOptions
updated id patch IUpdateAutomationOptions
deleted
automations IAutomationDescriptor
automationsautomations
override id IAutomationDescriptor
automationsautomation automationid id
override automationId
runsrun runautomationId automationId
override automationId IAutomationRun
runsrun runautomationId automationId runstatus runstatus
run IAutomationRun
runsrun runs
override options ICreateAutomationOptions IAutomationDescriptor
createdoptions
options
id
enabled optionsenabled
createdAt
updatedAt
override id patch IUpdateAutomationOptions IAutomationDescriptor
updated id patch
existing id
assertexisting
existing
name patchname existingname
prompt patchprompt existingprompt
schedule patchschedule existingschedule
target patchtarget existingtarget
modelId patchmodelId patchmodelId existingmodelId
mode patchmode patchmode existingmode
permissionLevel patchpermissionLevel patchpermissionLevel existingpermissionLevel
enabled patchenabled existingenabled
updatedAt
override id patch IUpdateAutomationOptions expected IAutomationDescriptor IGuardedAutomationUpdateResult
current id
current current expected
kind current
kind automation id patch
override id
deletedid
automationsautomationsautomation automationid id
calls
automationId
trigger AutomationRunTrigger
leaderWindowId
cancelled
tokens CancellationToken
whenDispatched
whenCompleted
runStatus IAutomationRun
notStarted IAutomationRunDispatch kind
automationService FakeAutomationService
override automation IAutomationDescriptor trigger AutomationRunTrigger leaderWindowId token CancellationToken CancellationTokenNone IAutomationRunOperation
calls
automationId automationid
trigger
leaderWindowId
cancelled tokenisCancellationRequested
tokenstoken
whenDispatched whenDispatched
activeRun automationServiceautomationid
activeRun
kind activeRun
notStarted
notStarted
sessionResource
run IAutomationRun
id
automationId automationid
status runStatus
trigger
sessionResource
startedAt
leaderWindowId
automationServicerun
kind run sessionResource
whenDispatched
whenCompleted whenDispatched whenCompleted
_serviceBrand
readStarted
readBarrier DeferredPromise
beforeCompareAndSwap
nextConflictValue
compareAndSwapCalls
currentValue
currentValue
_key
readStarted
readBarrierp
currentValue
_key expectedValue newValue IAutomationStorageCompareAndSwapResult
compareAndSwapCalls
beforeCompareAndSwap
nextConflictValue
currentValue nextConflictValue
nextConflictValue
currentValue currentValue
swapped currentValue
currentValue expectedValue
swapped currentValue currentValue
currentValue newValue
swapped currentValue newValue
automation IAutomationDescriptor
name automationname
prompt automationprompt
schedule automationschedule
target automationtargetkind
automationtarget folderUri automationtargetfolderUri
automationtarget
modelId automationmodelId
mode automationmode
permissionLevel automationpermissionLevel
enabled automationenabled
automations IAutomationDescriptor revision
schemaVersion
revision
automations automationsautomation
automation
target automationtargetkind
automationtarget folderUri automationtargetfolderUri
automationtarget
runs
beforeGetFolderSessionTypes
session ISession
resolveFromChatResource
folderSessionTypes IProviderSessionType
quickChatSessionTypes IProviderSessionType
override ISession
resolveFromChatResource session
override session ISession chat IChat
resolveFromChatResource session
session session chat resource
override IProviderSessionType
beforeGetFolderSessionTypes
folderSessionTypes
override IProviderSessionType
quickChatSessionTypes
enabled TestConfigurationService
configurationService
configurationService enabled
configurationService
options quickChat workspace ISession
workspace optionsworkspace
uri optionsworkspace
resource
providerId
sessionType
workspace workspace
isQuickChat optionsquickChat
providerId sessionTypeId supportsWorktreeConfiguration IProviderSessionType
providerId
sessionType id sessionTypeId supportsWorktreeConfiguration
tool IToolImpl parameters Record sessionResource token CancellationTokenNone selectedCustomButton toolSpecificData IToolInvocation IToolResult
tool
callId
toolId
parameters
context sessionResource
selectedCustomButton
toolSpecificData
progress token
result IToolResult
part resultcontent
part partkind
assert
partvalue
teardown
raw automationStorageService IAutomationStorageService AutomationService
storageService teardown
raw
storageService raw StorageScope StorageTarget
teardown storageService NullTelemetryService automationStorageService
automationService
configurationService
runData
automationService
automationService
configurationService
listData automationService configurationService
deleteData automationService configurationService
configureData
automationService
configurationService
tool listData toolwhen
assertlistData configureData runData deleteDatatool
id toolid
referenceName tooltoolReferenceName
aiEnabledGate toolChatContextKeysenabledkey
automationsEnabledGate toolChatAutomationsEnabledContextkey
runsInWorkspace toolrunsInWorkspace
id ListAutomationsToolId
referenceName
aiEnabledGate
automationsEnabledGate
runsInWorkspace
id ConfigureAutomationToolId
referenceName
aiEnabledGate
automationsEnabledGate
runsInWorkspace
id RunAutomationToolId
referenceName
aiEnabledGate
automationsEnabledGate
runsInWorkspace
id DeleteAutomationToolId
referenceName
aiEnabledGate
automationsEnabledGate
runsInWorkspace
modelDescription
modelDescription
assert
requiresExplicitAutomationIntent modelDescription
allowsRecurringScheduleIntent modelDescription
excludesMonitoringRequests modelDescription
requiresExplicitAutomationIntent
allowsRecurringScheduleIntent
excludesMonitoringRequests
automation
tool automation
result tool
assertresult
automations
id
name
prompt
schedule interval scheduleHour scheduleMinute scheduleDay
target
kind
folderUri
providerId
sessionTypeId
isolation kind
modelId
mode
permissionLevel
enabled
createdAt
updatedAt
lastRunAt
nextRunAt
automation
automationService automation
runner automationService
tool automationService runner
parameters automationId automationid
invocationCancellation
prepared toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
message preparedconfirmationMessagesmessage
result tool parameters invocationCancellationtoken
invocationCancellation
runTokenCancelledAfterDispatch runnertokensisCancellationRequested
invocationCancellation
assert
confirmationTitle preparedconfirmationMessagestitle
confirmationMessage message message messagevalue
calls runnercalls
runTokenCancelledAfterDispatch
result result
confirmationTitle
confirmationMessage
calls
automationId
trigger
leaderWindowId
cancelled
runTokenCancelledAfterDispatch
result
status
automation id name
run
id
status
sessionResource
automation
automationService automation
automationService
id
automationId automationid
status
trigger
sessionResource
startedAt
leaderWindowId
runner automationService
tool automationService runner
parameters automationId automationid
prepared toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
result tool parameters
assert
confirmation preparedconfirmationMessages
runsCreated automationServicerunslength
result result
confirmation
runsCreated
result
status
automation id name
run
id
status
sessionResource
automation
automationService automation
runner automationService
runnernotStarted kind reason
tool automationService runner
result tool automationId automationid
assert
error resulttoolResultError
calls runnercallslength
error
calls
automation
automationService automation
tool automationService
parameters automationId automationid
prepared toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
message preparedconfirmationMessagesmessage
result tool parameters CancellationTokenNone
assert
confirmationTitle preparedconfirmationMessagestitle
confirmationMessage message message messagevalue
allowAutoConfirm preparedconfirmationMessagesallowAutoConfirm
options preparedconfirmationMessagescustomOptions
deleted automationServicedeleted
automations automationServiceautomations
result result
confirmationTitle
confirmationMessage
allowAutoConfirm
options
id label kind ConfirmationOptionKindApprove
id label kind ConfirmationOptionKindDeny
deleted
automations
result
status
automation id name
automationService
tool automationService
parameters automationId
assert
toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
result tool parameters CancellationTokenNone
assert
error resulttoolResultError
deleted automationServicedeleted
error
deleted
automation
automationService automation
tool automationService
result tool automationId automationid CancellationTokenNone
assert
result result
deleted automationServicedeleted
automations automationServiceautomations
result
status
message
deleted
automations automation
automation
automationService automation
tool automationService
result
tool
automationId automationid
CancellationTokenNone
assert
result result
deleted automationServicedeleted
automations automationServiceautomations
result
status
automation id automationid name automationname
deleted automationid
automations
automation
automationService automation
tokenSource
tokenSource
tool automationService
result tool automationId automationid tokenSourcetoken
tokenSource
assert
result result
deleted automationServicedeleted
automations automationServiceautomations
result
status
message
deleted
automations automation
existing
tool
existing
workspace
createPrepared toolprepareToolInvocation
parameters
name
prompt
schedule interval
toolCallId
chatSessionResource
CancellationTokenNone
updatePrepared toolprepareToolInvocation
parameters automationId existingid name
toolCallId
chatSessionResource
CancellationTokenNone
assert
create
title createPreparedconfirmationMessagestitle
message createPreparedconfirmationMessagesmessage
createPreparedconfirmationMessagesmessage
createPreparedconfirmationMessagesmessagevalue
toolSpecificData createPreparedtoolSpecificData
update
title updatePreparedconfirmationMessagestitle
message updatePreparedconfirmationMessagesmessage
updatePreparedconfirmationMessagesmessage
updatePreparedconfirmationMessagesmessagevalue
expectedId updatePreparedtoolSpecificDatakind
updatePreparedtoolSpecificDataexpectedAutomationId
create
title
message
toolSpecificData
update
title
message
expectedId existingid
automationService
target AutomationTarget
kind
providerId
sessionTypeId
schedule IAutomationSchedule interval scheduleHour scheduleMinute scheduleDay
tool
automationService
quickChat
result tool
name
prompt
schedule interval scheduleHour scheduleMinute
enabled
assert
created automationServicecreated
status resultstatus
toolSpecificData resulttoolSpecificData
created
name
prompt
schedule
target
enabled
status
toolSpecificData
kind
automationId
automationName
operation
existing
automationService existing
tool
automationService
parameters
automationId existingid
name
schedule scheduleMinute
modelId
mode
permissionLevel
prepared toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
result tool parameters CancellationTokenNone preparedtoolSpecificData
assert
updated automationServiceupdated
status resultstatus
toolSpecificData resulttoolSpecificData
updated
id existingid
patch
name
schedule existingschedule scheduleMinute
modelId
mode
permissionLevel
status
toolSpecificData
kind
automationId existingid
automationName
operation
existing
automationService existing
tool
automationService
parameters automationId existingid name
prepared toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
automationServiceautomations
existing prompt updatedAt
result tool parameters CancellationTokenNone preparedtoolSpecificData
assert
error resulttoolResultError
updated automationServiceupdated
error
updated
existing
automationService existing
tool
automationService
parameters automationId existingid name
prepared toolprepareToolInvocation
parameters
toolCallId
chatSessionResource
CancellationTokenNone
automationServiceautomations
existing
updatedAt
lastRunAt
nextRunAt
result tool parameters CancellationTokenNone preparedtoolSpecificData
assert
status resultstatus
updated automationServiceupdated
status
updated id existingid patch name
automationService
tool
automationService
result tool
name
prompt
schedule interval
target
kind
folderUri
providerId
sessionTypeId
isolation
branch
assert
error resulttoolResultError
created automationServicecreated
error
created
automationService
tokenSource
tokenSource
tool
automationService
workspace
result tool
name
prompt
schedule interval
tokenSourcetoken
tokenSource
assert
result result
created automationServicecreated
result
status
message
created
automationService
configurationService
sessionsManagementService
sessionsManagementService configurationService
tool automationService sessionsManagementService configurationService
result tool
name
prompt
schedule interval
target
kind
folderUri
providerId
sessionTypeId
isolation
assert
error resulttoolResultError
created automationServicecreated
error
created
automationStorageService
readBarrier
automationStorageServicereadBarrier readBarrier
automationService automationStorageService
tokenSource teardown
tool
automationService
workspace
resultPromise tool
name
prompt
schedule interval
tokenSourcetoken
automationStorageServicereadStartedp
tokenSource
readBarrier
result resultPromise
assert
result result
compareAndSwapCalls automationStorageServicecompareAndSwapCalls
automations automationServiceautomations
result
status
message
compareAndSwapCalls
automations
automation
raw automation
automationStorageService raw
readBarrier
automationStorageServicereadBarrier readBarrier
automationService raw automationStorageService
tokenSource teardown
tool automationService
resultPromise tool automationId automationid tokenSourcetoken
automationStorageServicereadStartedp
tokenSource
readBarrier
result resultPromise
assert
result result
compareAndSwapCalls automationStorageServicecompareAndSwapCalls
automationIds automationServiceautomationscandidate candidateid
result
status
message
compareAndSwapCalls
automationIds automationid
automation
raw automation
automationStorageService raw
automationStorageServicenextConflictValue automation
configurationService
automationStorageService configurationService
automationService raw automationStorageService
tool
automationService
configurationService
result tool automationId automationid name
assert
error resulttoolResultError
compareAndSwapCalls automationStorageServicecompareAndSwapCalls
automationName automationServiceautomationidname
error
compareAndSwapCalls
automationName automationname
automationStorageService
tokenSource teardown
automationStorageService tokenSource
automationService automationStorageService
tool
automationService
workspace
result tool
name
prompt
schedule interval
tokenSourcetoken
persisted automationStorageServicevalue
assert
status resultstatus
cancelled tokenSourcetokenisCancellationRequested
compareAndSwapCalls automationStorageServicecompareAndSwapCalls
inMemoryNames automationServiceautomationsautomation automationname
persistedNames persistedautomationsautomation name automationname
status
cancelled
compareAndSwapCalls
inMemoryNames
persistedNames
tool
staleResult tool automationId name
malformedTargetResult tool
name
prompt
schedule interval
target
kind
folderUri
isolation
branch
assert
staleError staleResulttoolResultError
targetError malformedTargetResulttoolResultError
staleError
targetError
automationService
configurationService
runner automationService
listResult automationService configurationService
configureResult
automationService
workspace
configurationService
name
prompt
schedule interval
runResult
automationService runner configurationService
automationId
deleteResult
automationService configurationService
automationId
CancellationTokenNone
assert
listError listResulttoolResultError
configureError configureResulttoolResultError
runError runResulttoolResultError
deleteError deleteResulttoolResultError
runCalls runnercalls
deleted automationServicedeleted
listError
configureError
runError
deleteError
runCalls
deleted