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 type { Tool, ToolInvocation, ToolResultObject } from '@github/copilot-sdk';
import { DeferredPromise } from '../../../../base/common/async.js';
import { URI } from '../../../../base/common/uri.js';
import * as platform from '../../../../base/common/platform.js';
import { Emitter, Event } from '../../../../base/common/event.js';
import { DisposableStore, type IDisposable } from '../../../../base/common/lifecycle.js'
ensureNoDisposablesAreLeakedInTestSuite
IAgentConfigurationService
IEnvironmentService
IFileService
IInstantiationService
InstantiationService
ServiceCollection
ILogService NullLogService
IProductService
ISandboxHelperService
IWindowsMxcTerminalSandboxRuntime WindowsMxcTerminalSandboxRuntime
AgentHostSandboxConfigKey AgentHostSandboxKey
AgentSandboxEnabledValue
VSBuffer
CreateTerminalParams
TerminalClaimKind
buildDefaultChatUri
formatTerminalText IAgentHostTerminalManager
createShellTools isMultilineCommand ShellManager prefixForHistorySuppression shellTypeForExecutable
_serviceBrand
defaultShell
created params CreateTerminalParams options shell preventShellHistory nonInteractive
writes uri data
sentTexts uri data options ISendTextOptions
existingTerminalUris
commandDetectionSupported
commandFinishedListenerRegistered
_onCommandFinished
_onData
_onExit
_onClaimChanged
_onDidSendText
onDidSendText _onDidSendTextevent
_altBufferPromises DeferredPromise
_content
params CreateTerminalParams options shell preventShellHistory nonInteractive
created params options options shell optionsshell defaultShell
uri data
writes uri data
uri data options ISendTextOptions
sentTexts uri data options
uri data options
_onDidSendText
_uri data IDisposable _onDatacb
_uri exitCode IDisposable _onExitcb
_uri claim TerminalClaim IDisposable _onClaimChangedcb
_uri event ICommandFinishedEvent IDisposable
commandFinishedListenerRegistered
_onCommandFinishedcb
_uri store DisposableStore
deferred
_altBufferPromisesdeferred
store
index _altBufferPromisesdeferred
index
_altBufferPromisesindex
deferredp
_content
TerminalClaim
uri existingTerminalUrisuri
commandDetectionSupported
TerminalInfo
defaultShell
event ICommandFinishedEvent _onCommandFinishedevent
data _onDatadata
exitCode _onExitexitCode
claim TerminalClaim _onClaimChangedclaim
content _content content
promise _altBufferPromises
promise
disposables
disposables
service IAgentConfigurationService
key value
initialSandbox Record IFakeAgentConfigurationService
sandbox Record initialSandbox
configValues Record AgentHostSandboxConfigKeySandbox sandbox
emitter disposables
service IAgentConfigurationService
_serviceBrand
onDidRootConfigChange emitterevent
onDidSessionConfigChange EventNone
getRootValue _schema key configValueskey IAgentConfigurationService
service
key value
sandboxkey value
emitter
ISandboxHelperService
_serviceBrand
readonlyPaths readwritePaths
buildWindowsMxcSandboxPayload commandLine policy workingDirectory containerName containment
version policyversion
containerId containerName
containment
lifecycle destroyOnExit preservePolicy
process commandLine cwd workingDirectory timeout policytimeoutMs
filesystem
readwritePaths policyfilesystemreadwritePaths
readonlyPaths policyfilesystemreadonlyPaths
deniedPaths policyfilesystemdeniedPaths
network defaultPolicy policynetworkallowOutbound
ui disable policyuiallowWindows clipboard policyuiclipboard injection policyuiallowInputInjection
satisfies ISandboxHelperService
options sandboxEnabled deletedFolders createdFiles Map instantiationService IInstantiationService terminalManager TestAgentHostTerminalManager agentConfigurationService IFakeAgentConfigurationService
terminalManager
initialSandboxValues Record
optionssandboxEnabled
initialSandboxValuesAgentHostSandboxKeyEnabled AgentSandboxEnabledValueOn
initialSandboxValuesAgentHostSandboxKeyWindowsEnabled AgentSandboxEnabledValueOn
agentConfigurationService initialSandboxValues
services
servicesILogService
servicesIAgentHostTerminalManager terminalManager
servicesIAgentConfigurationService agentConfigurationServiceservice
servicesIFileService
uri content VSBuffer
optionscreatedFiles
optionscreatedFilesuripath content
uri optionsdeletedFoldersuripath
PartialIFileService IFileService
servicesIEnvironmentService
userHome
PartialIEnvironmentService userHome IEnvironmentService
servicesIProductService dataFolderName PartialIProductService IProductService
servicesISandboxHelperService
instantiationService IInstantiationService disposables services
servicesIInstantiationService instantiationService
servicesIWindowsMxcTerminalSandboxRuntime instantiationServiceWindowsMxcTerminalSandboxRuntime
instantiationService terminalManager agentConfigurationService
terminalManager TestAgentHostTerminalManager count
terminalManagersentTextslength count
didTimeOut resolve
disposables
listener EventterminalManageronDidSendText
disposables
disposableslistener
handle
disposables
disposables handle
didTimeOut
assert
terminalManager TestAgentHostTerminalManager
created terminalManagercreated
terminalManagerexistingTerminalUriscreatedparamschannel
instantiationService terminalManager
worktreePath fsPath
explicitCwd fsPath
shellManager disposablesinstantiationServiceShellManager worktreePath
shellManager
shellManager explicitCwd
assertterminalManagercreatedc cparamscwd
worktreePath
explicitCwd
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
shellManager
assertterminalManagercreatedlength
assertterminalManagercreatedoptionspreventShellHistory
assertterminalManagercreatedoptionsnonInteractive
instantiationService terminalManager
terminalManagerdefaultShell
shellManager disposablesinstantiationServiceShellManager
shellManager
assertterminalManagercreatedoptionsshell
assert
assert
assert
unknownDefault
assertunknownDefault unknownDefault
instantiationService terminalManager
terminalManagerdefaultShell
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
assertbashToolname
assertbashTooldescription
description bashTooldescription
assertdescription
assertdescription
assertdescription
assertdescription
assertdescription
assertdescription
terminalManager
terminalManager
services
servicesILogService
servicesIAgentHostTerminalManager terminalManager
servicesISandboxHelperService
instantiationService IInstantiationService disposables services
servicesIInstantiationService instantiationService
shellManager disposablesinstantiationServiceShellManager
first shellManager
first
second shellManager
assertsecondobjectid firstobjectid
assertterminalManagercreatedlength
second
terminalManager
terminalManager
services
servicesILogService
servicesIAgentHostTerminalManager terminalManager
servicesISandboxHelperService
instantiationService IInstantiationService disposables services
servicesIInstantiationService instantiationService
shellManager disposablesinstantiationServiceShellManager
first shellManager
second shellManager
assertsecondobjectid firstobjectid
assertterminalManagercreatedlength
first
second
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
skipPermissionByName Objecttoolst tname tskipPermission
assertskipPermissionByName
bash
read_bash
write_bash
bash_shutdown
list_bash
powershell
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
result bashToolhandler command timeout invocation ToolResultObject
assertresultresultType
assertterminalManagersentTextsoptionsbracketedPasteMode
assertterminalManagersentTextsoptionsbracketedPasteMode
assertterminalManagerwritesdata
assertterminalManagerwritesdata
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
sentinelMatch terminalManagerwritesdata
assertsentinelMatch
sentinelId sentinelMatch
content
terminalManagercontent
terminalManagercontent
result resultPromise
assertresultresultType
assertresulttextResultForLlm
assertresulttextResultForLlm
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManagercommandFinishedListenerRegisteredp
terminalManager commandId exitCode command output
result resultPromise
assertresultresultType
assertterminalManagersentTextslength
assertterminalManagersentTextsoptionsbracketedPasteMode
assertterminalManagerwritesdata
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager
result resultPromise
assertresultresultType
assertresulterror
assertresulttextResultForLlm
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager
result resultPromise
assertresultresultType
assertresulterror
assertresulttextResultForLlm
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager
result resultPromise
assertresulterror
terminalManager
shell shellManager
terminalManager commandId exitCode command output
next shellManager
assertnextobjectid shellid
assertterminalManagercreatedlength
next
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager
result resultPromise
assertresulterror
terminalManager
shell shellManager
next shellManager
assertnextobjectid shellid
assertterminalManagercreatedlength
next
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager kind TerminalClaimKindSession session chat turnId
result resultPromise
assertresultresultType
assertresulttextResultForLlm
terminalManager
shell shellManager
next shellManager
assertnextobjectid shellid
assertterminalManagercreatedlength
next
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager kind TerminalClaimKindSession session chat turnId
result resultPromise
assertresultresultType
terminalManager
shell shellManager
terminalManager commandId exitCode command output
next shellManager
assertnextobjectid shellid
assertterminalManagercreatedlength
next
instantiationService terminalManager
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
resultPromise bashToolhandler command timeout invocation ToolResultObject
terminalManager
terminalManager kind TerminalClaimKindSession session chat turnId
result resultPromise
assertresultresultType
terminalManager
shell shellManager
terminalManager
next shellManager
assertnextobjectid shellid
assertterminalManagercreatedlength
next
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
result bashToolhandler command timeout invocation ToolResultObject
assertresultresultType
assertterminalManagersentTextsoptionsbracketedPasteMode platformisMacintosh
assertterminalManagersentTextsoptionsbracketedPasteMode
assert
assert
assert
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
shellRef shellManager
terminalManagerexistingTerminalUrisshellRefobjectterminalUri
tools shellManager terminalManager
writeTool toolstool toolname
assertwriteTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command
result writeToolhandler command invocation ToolResultObject
assertresultresultType
assertterminalManagersentTextsoptionsbracketedPasteMode
assertterminalManagerwritesuri shellRefobjectterminalUri
assertterminalManagerwritesdata
shellRef
instantiationService
shellManager disposablesinstantiationServiceShellManager
engineA shellManager
engineB shellManager
assertengineA engineB
enabled sandboxEnabled
enabledShell disposablesenabledinstantiationServiceShellManager
enabledTools enabledShell enabledterminalManager
enabledPrimary enabledTools Tool
enabledSchema enabledPrimaryparameters properties Record
enabledPropertyNames ObjectenabledSchemaproperties
assertenabledPropertyNames
assertenabledPropertyNames
disabled
disabledShell disposablesdisabledinstantiationServiceShellManager
disabledTools disabledShell disabledterminalManager
disabledPrimary disabledTools Tool
disabledSchema disabledPrimaryparameters properties Record
disabledPropertyNames ObjectdisabledSchemaproperties
assertdisabledPropertyNames
assertdisabledPropertyNames
instantiationService terminalManager
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
bashToolhandler command timeout invocation
sentCommand terminalManagersentTextsdata
assertsentCommand
assertsentCommand
instantiationService terminalManager sandboxEnabled
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
bashToolhandler command timeout invocation
sentCommand terminalManagersentTextsdata
platformisWindows
assertsentCommand
assertsentCommand
assertsentCommand
createdFiles
workingDirectory
instantiationService terminalManager sandboxEnabled createdFiles
shellManager disposablesinstantiationServiceShellManager workingDirectory
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
bashToolhandler command timeout invocation
sandboxConfigEntry createdFilespath path
assertsandboxConfigEntry
config sandboxConfigEntry
writablePaths platformisWindows configfilesystemreadwritePaths configfilesystemallowWrite
assertwritablePaths
expectedPath platformisWindows
assertwritablePathsexpectedPath
createdFiles
configuredReadPath platformisWindows
fileSystemKey platformisWindows
AgentHostSandboxKeyWindowsFileSystem
platformisMacintosh AgentHostSandboxKeyMacFileSystem AgentHostSandboxKeyLinuxFileSystem
instantiationService terminalManager agentConfigurationService sandboxEnabled createdFiles
agentConfigurationServicefileSystemKey allowRead configuredReadPath
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command timeout
bashToolhandler command timeout invocation
sandboxConfigEntry createdFilespath path
assertsandboxConfigEntry
config sandboxConfigEntry
readablePaths platformisWindows configfilesystemreadonlyPaths configfilesystemallowRead
assertreadablePaths
assertreadablePathsconfiguredReadPath
platformisWindows
instantiationService terminalManager agentConfigurationService sandboxEnabled
agentConfigurationServiceAgentHostSandboxKeyAllowUnsandboxedCommands
terminalManagercommandDetectionSupported
shellManager disposablesinstantiationServiceShellManager
confirmationRequests IUnsandboxedCommandConfirmationRequest
tools shellManager terminalManager request
confirmationRequestsrequest
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command
resultPromise bashToolhandler command invocation
terminalManagercommandFinishedListenerRegisteredp
terminalManager
commandId
exitCode
command
output
result resultPromise ToolResultObject
assertconfirmationRequestslength
assertconfirmationRequestsblockedDomains
assertterminalManagersentTextslength
assertterminalManagersentTextsentry entrydata
assertresultresultType
platformisWindows
instantiationService terminalManager agentConfigurationService sandboxEnabled
agentConfigurationServiceAgentHostSandboxKeyAllowUnsandboxedCommands
shellManager disposablesinstantiationServiceShellManager
tools shellManager terminalManager
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments command
result bashToolhandler command invocation ToolResultObject
assertresultresultType
assertresulterror
assertresulttextResultForLlm
assertterminalManagersentTextslength
instantiationService terminalManager agentConfigurationService sandboxEnabled
agentConfigurationServiceAgentHostSandboxKeyAllowUnsandboxedCommands
shellManager disposablesinstantiationServiceShellManager
confirmationRequests IUnsandboxedCommandConfirmationRequest
tools shellManager terminalManager request
confirmationRequestsrequest
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments
command
requestUnsandboxedExecution
requestUnsandboxedExecutionReason
result bashToolhandler
command
requestUnsandboxedExecution
requestUnsandboxedExecutionReason
invocation ToolResultObject
assertconfirmationRequestslength
assertconfirmationRequestsreason
assertresultresultType
assertresulterror
assertresulttextResultForLlm
assertterminalManagersentTextslength
instantiationService terminalManager sandboxEnabled
shellManager disposablesinstantiationServiceShellManager
confirmationRequests IUnsandboxedCommandConfirmationRequest
tools shellManager terminalManager request
confirmationRequestsrequest
bashTool toolstool toolname
assertbashTool
invocation ToolInvocation
sessionId
toolCallId
toolName
arguments
command
requestUnsandboxedExecution
requestUnsandboxedExecutionReason
result bashToolhandler
command
requestUnsandboxedExecution
requestUnsandboxedExecutionReason
invocation ToolResultObject
assertresultresultType
assertresulterror
assertresulttextResultForLlm
assertconfirmationRequestslength
assertterminalManagersentTextslength