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.
*--------------------------------------------------------------------------------------------*/
/**
* Compatibility bridge from legacy VS Code settings to Copilot SDK managed
* settings.
*
* Scope and limits, all deliberate:
*
* - **Restrictions only.** Mappings may add `deny`, `ask`, or the bypass lock;
* they never widen what a session may do. In particular no `allow` list is
* contributed, even to narrow another rule's reach: the SDK's managed `allow`
* is not a scoping hint, since a covered request resolves to `managed_allow`,
* which the runtime treats as outright approval and returns without prompting.
* The runtime also intersects allow lists only when more than one managed
* source supplies one, so a lone list from VS Code would grant blanket
* auto-approval and could relax an MDM policy rather than reinforce it.
* - **Global layers only.** Values are read from policy, user, and application;
* workspace and folder values are ignored, because the agent host is shared by
* every window connected to it and one workspace's settings must not leak into
* another window's sessions.
* - **Only what survives translation.** A setting is mapped only when its VS
* Code semantics can be expressed exactly in the SDK's rule grammar. Where
* they cannot — a regular-expression terminal rule, an allow list that blocks
* what it omits — the restriction is skipped rather than approximated, since a
* near-miss silently changes what an administrator configured.
* - **One deliberate exception, erring more restrictive.**
* `chat.tools.eligibleForAutoApproval` marks individual tools ineligible for
* auto-approval, but the SDK grammar has no tool-name family ({@link
* ManagedRuleFamily} is only `Shell`, `Read`, `Write`, and `Domain`, and an
* unknown family rejects the whole document). Rather than skip a genuine
* restriction, a policy that marks any tool ineligible maps onto the
* family-agnostic bypass lock — coarser and more restrictive, since the lock
* is session-wide and does not itself force per-request confirmation (only an
* `ask` rule sets `managedApprovalRequired`). A policy that leaves every tool
* eligible (all `true`, or empty) expresses no restriction and contributes
* nothing. Replace this with a per-tool translation once the grammar gains a
* tool-name family.
* - **Copilot sessions on a local host.** The renderer sends an empty
* contribution to remote hosts, and other agents do not consume managed
* settings, so restrictions bridged here do not reach them. Those agents
* remain governed by the root-config path (see
* `AgentHostAutoApprovePolicyRestrictedConfigKey`).
*
* New enterprise controls belong directly in the SDK's managed-settings
* contract; this table exists only so settings that predate it keep working.
*/
IConfigurationService
AgentNetworkDomainSettingId
extractDomainPattern normalizeDomain
buildManagedFamilyRule buildManagedRule ManagedRuleFamily
getGlobalConfigurationValue inspectValue
disableBypassPermissionsMode
deny
ask
AgentHostMapLegacySettingsToManagedSettingsSettingId
settingId
additionalSettingIds
configurationService IConfigurationService IAgentHostManagedSettingsPermissions
settingId
sources ManagedPermissionsSettingSources
value IAgentHostManagedSettingsPermissions
IManagedPermissionsSettingMapping
settingId
configurationService
configuration configurationService settingId
configuration
value source configuration
sources source
value
settingId
additionalSettingIds
configurationService IConfigurationService IAgentHostManagedSettingsPermissions
IManagedPermissionsSettingMapping
settingId additionalSettingIds contribute
configurationService IConfigurationService IAgentHostManagedSettingsPermissions
configurationService AgentNetworkDomainSettingIdNetworkFilter
allowed configurationService AgentNetworkDomainSettingIdAllowedNetworkDomains
denied configurationService AgentNetworkDomainSettingIdDeniedNetworkDomains
allowedlength deniedlength
deny ManagedRuleFamilyDomain
deny
pattern denied
pattern
domain pattern
domain
rule domain
ManagedRuleFamilyDomain
ManagedRuleFamilyDomain domain
rule
denyrule
denylength deny
rules AgentHostTerminalAutoApproveRules IAgentHostManagedSettingsPermissions
rules rules
ask
command value Objectrules
value command
rule ManagedRuleFamilyShell command
rule
askrule
asklength ask
value AgentHostTerminalAutoApproveRuleValue
value
value value valueapprove valuematchCommandLine
command
command command
value Record IAgentHostManagedSettingsPermissions
value value value
Objectvalueeligible eligible
disableBypassPermissionsMode
managedPermissionsSettings IManagedPermissionsSettingMapping
value value disableBypassPermissionsMode
contributeEligibleForAutoApprovalRestriction
value value ask ManagedRuleFamilyShell
AgentNetworkDomainSettingIdNetworkFilter
AgentNetworkDomainSettingIdAllowedNetworkDomains AgentNetworkDomainSettingIdDeniedNetworkDomains
contributeNetworkDomainRules
contributeTerminalDenialRules
managedPermissionsConfigurationIds
AgentHostMapLegacySettingsToManagedSettingsSettingId
managedPermissionsSettingsmapping mappingsettingId mappingadditionalSettingIds
value value IAgentHostManagedSettingsPermissions
value value value
permissions value Record
Objectpermissionskey key key key
permissionsdisableBypassPermissionsMode permissionsdisableBypassPermissionsMode
permissionsdeny
permissionsask
value
value value valueitem item
configurationService IConfigurationService IAgentHostManagedSettingsPermissions
configurationService AgentHostMapLegacySettingsToManagedSettingsSettingId
deny
ask
disableBypassPermissionsMode
mapping managedPermissionsSettings
contribution mappingconfigurationService
contribution
contributiondisableBypassPermissionsMode
disableBypassPermissionsMode contributiondisableBypassPermissionsMode
contributiondenyrule denyrule
contributionaskrule askrule
permissions IAgentHostManagedSettingsPermissions
disableBypassPermissionsMode
permissionsdisableBypassPermissionsMode disableBypassPermissionsMode
denysize
permissionsdeny deny
asksize
permissionsask ask
permissions