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.
*--------------------------------------------------------------------------------------------*/
/**
* Construction and validation of Copilot SDK managed permission rules.
*
* The SDK parses every rule it receives with a strict grammar, and a single
* malformed rule rejects the **entire** managed permissions document rather
* than just the offending entry. Because VS Code sends this document as part of
* session create/resume, an untranslatable rule derived from a user's settings
* would fail the session outright. Everything this bridge emits therefore goes
* through {@link buildManagedRule}, which returns `undefined` for anything the
* SDK would reject so the caller can drop it and continue.
*
* The grammar mirrored here is `parse_managed_rule` in the agent runtime
* (`src/runtime/src/permissions/managed.rs`).
*/
/**
* Rule families the SDK understands. Any other family is a parse error for the
* whole document, so there is deliberately no escape hatch for arbitrary tool
* names — see `parse_managed_rule`'s "Unsupported managed permission rule
* family" branch.
*/
export const enum ManagedRuleFamily {
/** Shell/terminal commands. Matches `Bash` and `PowerShell` on the SDK side too. */
Shell = 'Shell',
/** File reads. */
Read = 'Read',
/** File writes. The SDK treats `Edit` as an alias. */
Write = 'Write',
/** Network access, matched as a URL pattern. */
Domain = 'Domain',
}
/**
* A rule with no argument, which matches **every** request in its family — the
* SDK's matchers return `true` as soon as the family matches and the argument is
* absent. This is the only correct way to express "all of X"; an argument of
* `*` is *not* a universal wildcard for ManagedRuleFamily.Domain,
* because domain arguments are normalized as URL patterns whose only wildcard
* form is a `*.host` subdomain match.
*/
family ManagedRuleFamily
family
family ManagedRuleFamily argument
argument argument
family
ManagedRuleFamilyShell
argument
ManagedRuleFamilyRead
ManagedRuleFamilyWrite
argument
ManagedRuleFamilyDomain
argument
argument
argument argument
argument
argument
prefix argument argument argument
prefixlength
argument
argument
depth
char argument
char
depth
char
depth
depth
argument
argument
argument
argument argument argument
hasScheme argument
hasScheme argument
argument
url hasScheme argument
urlhostnamelength