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 { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../base/test/common/utils.js';
import { AgentHostSandboxKey, type ISandboxConfigValue } from '../../common/sandboxConfigSchema.js';
import { AgentSandboxEnabledValue } from '../../../sandbox/common/settings.js';
import { buildSandboxConfigForSdk, type IAgentSandboxFileSystemSetting, type SandboxConfig } from '../../node/copilot/sandboxConfigForSdk.js';
/**
* Build the host-side `sandbox` root-config bag (the shape the workbench
* forwarder dispatches in a `RootConfigChanged` action) for the given
* `enabled` enum + optional per-OS filesystem rules and network host lists.
*
* Mirrors the per-OS dispatch in the Copilot extension's
* `buildSandboxConfigForCLI` tests — the SDK helper consumes the same fields
* but receives them via the host root bag instead of the per-OS keyed
* object.
*/
platform NodeJSPlatform
enabled AgentSandboxEnabledValue
fs IAgentSandboxFileSystemSetting
hosts allowedHosts blockedHosts
allowNetwork
ISandboxConfigValue
enabled fs hosts
cfg ISandboxConfigValue
enabled
cfgplatform AgentHostSandboxKeyWindowsEnabled AgentHostSandboxKeyEnabled enabled
fs
fsKey platform
AgentHostSandboxKeyWindowsFileSystem
platform
AgentHostSandboxKeyMacFileSystem
AgentHostSandboxKeyLinuxFileSystem
cfgfsKey fs Record
hostsallowedHostslength
cfgAgentHostSandboxKeyAllowedNetworkDomains hostsallowedHosts
hostsblockedHostslength
cfgAgentHostSandboxKeyDeniedNetworkDomains hostsblockedHosts
allowNetwork
cfgAgentHostSandboxKeyAllowNetwork allowNetwork
cfg
options
readwritePaths
readonlyPaths
deniedPaths
allowOutbound
allowBypass
SandboxConfig
enabled
allowBypass optionsallowBypass
addCurrentWorkingDirectory
allowDevToolAccess
auth
git
gh
userPolicy
filesystem
optionsdeniedPathslength deniedPaths optionsdeniedPaths
optionsreadonlyPathslength readonlyPaths optionsreadonlyPaths
optionsreadwritePathslength readwritePaths optionsreadwritePaths
clearPolicyOnExit
network
allowOutbound optionsallowOutbound
allowLocalNetwork
assert
assert
assert
assert
assert AgentSandboxEnabledValueOff
assert AgentSandboxEnabledValueOff
assert AgentSandboxEnabledValueOff
assert AgentSandboxEnabledValueOff
platform
assertplatform platform AgentSandboxEnabledValueOn
platform
assertplatform platform AgentSandboxEnabledValueOn allowOutbound
assert
AgentHostSandboxKeyEnabled AgentSandboxEnabledValueOn
AgentHostSandboxKeyAllowUnsandboxedCommands
AgentHostSandboxKeyEnabled AgentSandboxEnabledValueOn
AgentHostSandboxKeyAllowUnsandboxedCommands
allowBypass
allowBypass
cfg ISandboxConfigValue
AgentHostSandboxKeyEnabled AgentSandboxEnabledValueOff
AgentHostSandboxKeyWindowsEnabled AgentSandboxEnabledValueOn
assert cfg
assert
AgentHostSandboxKeyEnabled AgentSandboxEnabledValueOn
cfg ISandboxConfigValue
AgentHostSandboxKeyEnabled AgentSandboxEnabledValueOn
AgentHostSandboxKeyWindowsEnabled AgentSandboxEnabledValueOn
AgentHostSandboxKeyLinuxFileSystem allowWrite
AgentHostSandboxKeyMacFileSystem allowWrite
AgentHostSandboxKeyWindowsFileSystem allowWrite
assert cfguserPolicyfilesystem readwritePaths userPolicyfilesystem
assert cfguserPolicyfilesystem readwritePaths userPolicyfilesystem
assert cfguserPolicyfilesystem readwritePaths userPolicyfilesystem
fs IAgentSandboxFileSystemSetting
allowWrite
allowRead
denyWrite
denyRead
assert AgentSandboxEnabledValueOn fs
readwritePaths
readonlyPaths
deniedPaths
assert AgentSandboxEnabledValueOn
fs IAgentSandboxFileSystemSetting
allowRead
allowWrite
denyWrite
denyRead
assert AgentSandboxEnabledValueOn fsuserPolicyfilesystem deniedPaths userPolicyfilesystem
fs IAgentSandboxFileSystemSetting
allowRead
allowWrite
denyWrite
assert AgentSandboxEnabledValueOn fsuserPolicyfilesystem readonlyPaths userPolicyfilesystem
fs IAgentSandboxFileSystemSetting
allowRead
allowWrite
assert AgentSandboxEnabledValueOn fsuserPolicyfilesystem readwritePaths userPolicyfilesystem
fs IAgentSandboxFileSystemSetting
allowWrite
denyWrite
assert AgentSandboxEnabledValueOn fsuserPolicyfilesystem
readwritePaths
readonlyPaths
userPolicyfilesystem
platform
assertplatform platform AgentSandboxEnabledValueOn allowedHosts blockedHosts userPolicynetwork
allowOutbound
allowLocalNetwork
platform
platform
assertplatform platform AgentSandboxEnabledValueOn allowedHosts blockedHosts userPolicynetwork
allowOutbound
allowLocalNetwork
platform
assert AgentSandboxEnabledValueOn allowedHosts blockedHosts userPolicynetwork
allowOutbound
allowLocalNetwork