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 { localize } from '../../../nls.js';
/**
* The routing profiles the Copilot runtime accepts for an Auto session, cheapest first. These are
* the wire values of its `capi.autoTier` option; the retired `eco`/`balanced`/`max` names are rejected.
*/
export const autoModeTiers = ['efficiency', 'balance', 'intelligence'] as const;
export type AutoModeTier = typeof autoModeTiers[number];
/** The profile used when the user has not picked one. Also the picker's default. */
export const defaultAutoModeTier: AutoModeTier = 'balance';
/** Narrows an untrusted value, such as a persisted picker selection, to a profile the runtime accepts. */
export function isAutoModeTier(value: unknown): value is AutoModeTier {
return autoModeTiers.some(tier => tier === value);
}
/**
* Localized picker label for a routing profile, capitalizing an unrecognized value so a new profile
* never surfaces raw. Wording matches the extension's `getAutoModeTierLabel`, which cannot be imported here.
*/
export function getAutoModeTierLabel(tier: string): string {
switch (tier) {
case 'efficiency': return localize('autoModeTier.efficiency', "Efficiency");
case 'balance': return localize('autoModeTier.balance', "Balance");
case 'intelligence': return localize('autoModeTier.intelligence', "Intelligence");
default: return tier.charAt(0).toUpperCase() + tier.slice(1);
}
}
/** Localized picker description, or nothing for an unrecognized value so callers can omit it. */
export function getAutoModeTierDescription(tier: string): string | undefined {
switch (tier) {
case 'efficiency': return localize('autoModeTier.efficiencyDescription', "Cheaper models for everyday tasks");
case 'balance': return localize('autoModeTier.balanceDescription', "Balances capability and cost");
case 'intelligence': return localize('autoModeTier.intelligenceDescription', "Most capable models, higher cost");
default: return undefined;
}
}